Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index e6aad9428772f83208b799ff0ec4504223dd31b6..e2ae85432aae6797cc42754918ad9671a65469af 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -78,7 +78,7 @@ Handle<ScopeInfo> ScopeInfo::Create(Scope* scope, Zone* zone) { |
// Encode the flags. |
int flags = ScopeTypeField::encode(scope->scope_type()) | |
CallsEvalField::encode(scope->calls_eval()) | |
- LanguageModeField::encode(scope->language_mode()) | |
+ StrictModeField::encode(scope->strict_mode()) | |
FunctionVariableField::encode(function_name_info) | |
FunctionVariableMode::encode(function_variable_mode); |
scope_info->SetFlags(flags); |
@@ -164,8 +164,8 @@ bool ScopeInfo::CallsEval() { |
} |
-LanguageMode ScopeInfo::language_mode() { |
- return length() > 0 ? LanguageModeField::decode(Flags()) : SLOPPY_MODE; |
+StrictMode ScopeInfo::strict_mode() { |
+ return length() > 0 ? StrictModeField::decode(Flags()) : SLOPPY; |
} |
@@ -378,7 +378,7 @@ bool ScopeInfo::CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
Handle<String>(String::cast(scope_info->get(i))), |
Handle<Object>(context->get(context_index), isolate), |
::NONE, |
- kSloppyMode); |
+ SLOPPY); |
RETURN_IF_EMPTY_HANDLE_VALUE(isolate, result, false); |
} |
return true; |