Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1682)

Unified Diff: src/runtime/runtime-scopes.cc

Issue 1437003006: Fix harmony sloppy block scoping dynamic redeclaration check (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tighten test, fix bug in redeclaration check Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/runtime/runtime-scopes.cc
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
index ecbe5cd17d953a7a13c667674425704100ce2e68..49320b2a42be7f140c5e6647a6e6fbf1764a2e5b 100644
--- a/src/runtime/runtime-scopes.cc
+++ b/src/runtime/runtime-scopes.cc
@@ -231,7 +231,8 @@ Object* DeclareLookupSlot(Isolate* isolate, Handle<String> name,
&binding_flags);
if (attributes != ABSENT &&
(binding_flags == MUTABLE_CHECK_INITIALIZED ||
- binding_flags == IMMUTABLE_CHECK_INITIALIZED)) {
+ binding_flags == IMMUTABLE_CHECK_INITIALIZED ||
adamk 2015/11/12 23:22:27 This is for CONST_LEGACY, I wonder if it even belo
adamk 2015/11/13 07:06:01 Any thoughts on this? The comment above claims thi
+ binding_flags == IMMUTABLE_CHECK_INITIALIZED_HARMONY)) {
return ThrowRedeclarationError(isolate, name);
}
attr = static_cast<PropertyAttributes>(attr & ~EVAL_DECLARED);

Powered by Google App Engine
This is Rietveld 408576698