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

Unified Diff: src/parsing/parser.cc

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: fix nits Created 3 years, 11 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/objects.cc ('k') | src/parsing/parser-base.h » ('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 e3bd5eb67515ba70a29d143597a825c8338e1974..cf818aa512a05e40dfc39c0d31757f98533f4d80 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -552,7 +552,7 @@ Parser::Parser(ParseInfo* info)
set_allow_harmony_restrictive_generators(FLAG_harmony_restrictive_generators);
set_allow_harmony_trailing_commas(FLAG_harmony_trailing_commas);
set_allow_harmony_class_fields(FLAG_harmony_class_fields);
- set_allow_harmony_object_spread(FLAG_harmony_object_spread);
+ set_allow_harmony_object_rest_spread(FLAG_harmony_object_rest_spread);
for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount;
++feature) {
use_counts_[feature] = 0;
@@ -2739,7 +2739,7 @@ Parser::LazyParsingResult Parser::SkipFunction(
SET_ALLOW(harmony_function_sent);
SET_ALLOW(harmony_trailing_commas);
SET_ALLOW(harmony_class_fields);
- SET_ALLOW(harmony_object_spread);
+ SET_ALLOW(harmony_object_rest_spread);
#undef SET_ALLOW
}
// Aborting inner function preparsing would leave scopes in an inconsistent
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698