Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 574472d2464ed646a752f194bfd8834ff3cbd314..6bbf0fe1ac21433a10f6c7881762e91a4f932e8f 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -816,6 +816,8 @@ Parser::Parser(ParseInfo* info) |
FLAG_harmony_exponentiation_operator); |
set_allow_harmony_async_await(FLAG_harmony_async_await); |
set_allow_harmony_restrictive_generators(FLAG_harmony_restrictive_generators); |
+ set_allow_harmony_trailing_commas_in_parameters( |
+ FLAG_harmony_trailing_commas_in_parameters); |
for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; |
++feature) { |
use_counts_[feature] = 0; |
@@ -4874,6 +4876,7 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser( |
SET_ALLOW(harmony_exponentiation_operator); |
SET_ALLOW(harmony_restrictive_declarations); |
SET_ALLOW(harmony_async_await); |
+ SET_ALLOW(harmony_trailing_commas_in_parameters); |
#undef SET_ALLOW |
} |
PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction( |