Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 03e69bf38425f565f4485c4d717ab982bbbd94ed..e6aad9428772f83208b799ff0ec4504223dd31b6 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -165,7 +165,7 @@ bool ScopeInfo::CallsEval() { |
LanguageMode ScopeInfo::language_mode() { |
- return length() > 0 ? LanguageModeField::decode(Flags()) : CLASSIC_MODE; |
+ return length() > 0 ? LanguageModeField::decode(Flags()) : SLOPPY_MODE; |
} |
@@ -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, |
- kNonStrictMode); |
+ kSloppyMode); |
RETURN_IF_EMPTY_HANDLE_VALUE(isolate, result, false); |
} |
return true; |