Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index 710d30aa8ec2a4138da312750667d8e7b87b3409..964347f7e4be5fb758595ec58b90ce3b798c1fc4 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -185,12 +185,12 @@ Handle<Object> Context::Lookup(Handle<String> name, |
*binding_flags = (init_flag == kNeedsInitialization) |
? MUTABLE_CHECK_INITIALIZED : MUTABLE_IS_INITIALIZED; |
break; |
- case CONST: |
+ case CONST_LEGACY: |
*attributes = READ_ONLY; |
*binding_flags = (init_flag == kNeedsInitialization) |
? IMMUTABLE_CHECK_INITIALIZED : IMMUTABLE_IS_INITIALIZED; |
break; |
- case CONST_HARMONY: |
+ case CONST: |
*attributes = READ_ONLY; |
*binding_flags = (init_flag == kNeedsInitialization) |
? IMMUTABLE_CHECK_INITIALIZED_HARMONY : |
@@ -222,8 +222,8 @@ Handle<Object> Context::Lookup(Handle<String> name, |
} |
*index = function_index; |
*attributes = READ_ONLY; |
- ASSERT(mode == CONST || mode == CONST_HARMONY); |
- *binding_flags = (mode == CONST) |
+ ASSERT(mode == CONST_LEGACY || mode == CONST); |
+ *binding_flags = (mode == CONST_LEGACY) |
? IMMUTABLE_IS_INITIALIZED : IMMUTABLE_IS_INITIALIZED_HARMONY; |
return context; |
} |