Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: src/parsing/parser.cc

Issue 2413213002: Allow lazy parsing of eval-created functions (Closed)
Patch Set: disallow preparsing without scope resolution of strict-mode evaled functions Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/scopes.cc ('k') | test/mjsunit/preparse-toplevel-strict-eval.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index b018b7d8ab7be49aeffe25e29d19e92b40a28978..292293987b0471c017bc28529440f6ae2b7a5e27 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -791,9 +791,6 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
DCHECK_NOT_NULL(outer);
parsing_module_ = info->is_module();
if (info->is_eval()) {
- if (!outer->is_script_scope() || is_strict(info->language_mode())) {
- parsing_mode = PARSE_EAGERLY;
- }
outer = NewEvalScope(outer);
} else if (parsing_module_) {
DCHECK_EQ(outer, info->script_scope());
« no previous file with comments | « src/ast/scopes.cc ('k') | test/mjsunit/preparse-toplevel-strict-eval.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698