Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 41ebf97280fbcae62ddc36e86149a1a25aa1f9c8..5c6a91eccc0e2c95b4e73974c5e57cb1209d00ae 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1516,6 +1516,9 @@ class PreParserTraits { |
return PreParserExpressionList(); |
} |
+ static void AddParameterInitializationBlock(PreParserStatementList list, |
+ bool* ok) {} |
+ |
V8_INLINE void SkipLazyFunctionBody(int* materialized_literal_count, |
int* expected_property_count, bool* ok) { |
UNREACHABLE(); |
@@ -3631,6 +3634,7 @@ ParserBase<Traits>::ParseArrowFunctionLiteral( |
ParseAssignmentExpression(true, &classifier, CHECK_OK); |
ValidateExpression(&classifier, CHECK_OK); |
body = this->NewStatementList(1, zone()); |
+ this->AddParameterInitializationBlock(body, CHECK_OK); |
body->Add(factory()->NewReturnStatement(expression, pos), zone()); |
materialized_literal_count = function_state.materialized_literal_count(); |
expected_property_count = function_state.expected_property_count(); |