Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 0ceecb2ba2c714004aaafc54b8d326518aeb902b..815d70df9358ae55850b93048bb75c0c503c9f2f 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -200,7 +200,8 @@ void Scope::SetDefaults(Type type, |
scope_contains_with_ = false; |
scope_calls_eval_ = false; |
// Inherit the strict mode from the parent scope. |
- strict_mode_ = (outer_scope != NULL) && outer_scope->strict_mode_; |
+ strict_mode_flag_ = (outer_scope != NULL) |
+ ? outer_scope->strict_mode_flag_ : kNonStrictMode; |
outer_scope_calls_non_strict_eval_ = false; |
inner_scope_calls_eval_ = false; |
force_eager_compilation_ = false; |