Chromium Code Reviews

Unified Diff: src/parser.cc

Issue 1002193002: Experimental: remove duplicate script scope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 255fd288862e9f5e3fcec38e070c969f77e62d8e..ff7d61dcfb5d00445dfe5dbeca28e79746ecb466 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -994,8 +994,6 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info, Scope** scope,
if (!(*scope)->is_script_scope() || is_strict(info->language_mode())) {
*scope = NewScope(*scope, EVAL_SCOPE);
}
- } else if (info->is_global()) {
- *scope = NewScope(*scope, SCRIPT_SCOPE);
} else if (info->is_module()) {
*scope = NewScope(*scope, MODULE_SCOPE);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine