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

Unified Diff: src/parsing/parser.cc

Issue 1815033002: Pass legacy const runtime flag to preparser appropriately (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove useless webkit test Created 4 years, 9 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 | « no previous file | test/message/const-decl-no-init-sloppy.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 12666fe8ef4fe5ecbe715897dc6de69ff7644816..058f23114072ddf28b9d7562b9708fa9e9be4f78 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4675,6 +4675,7 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
reusable_preparser_->set_allow_lazy(true);
#define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name());
SET_ALLOW(natives);
+ SET_ALLOW(legacy_const);
SET_ALLOW(harmony_sloppy);
SET_ALLOW(harmony_sloppy_let);
SET_ALLOW(harmony_do_expressions);
« no previous file with comments | « no previous file | test/message/const-decl-no-init-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698