Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index d9f34c894238ce934848e3636e7a361e0b602208..5626ac5862efdcd24854eb294eccd6ab99099734 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -1119,7 +1119,9 @@ bool Scope::AllowsLazyParsingWithoutUnresolvedVariables() const { |
// inner scopes to find out how to allocate variables on the block scope. At |
// this point, declarations may not have yet been parsed. |
for (const Scope* s = this; s != nullptr; s = s->outer_scope_) { |
- if (s->is_block_scope() || s->is_function_scope()) return false; |
+ if (s->is_block_scope()) return false; |
+ if (s->is_function_scope()) return false; |
+ if (s->is_eval_scope() && is_strict(s->language_mode())) return false; |
} |
return true; |
} |