Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 0544b9feb241c9883fac4aed91911135ecb0f2d0..adf72e9c9ecd9c88f966b1db82aff0fa3f463419 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -1291,6 +1291,19 @@ PreParserExpression PreParser::ParseDoExpression(bool* ok) { |
return PreParserExpression::Default(); |
} |
+void PreParserTraits::ParseAsyncArrowSingleExpressionBody( |
+ PreParserStatementList body, bool accept_IN, |
+ Type::ExpressionClassifier* classifier, int pos, bool* ok) { |
+ Scope* scope = pre_parser_->scope_; |
+ scope->ForceContextAllocation(); |
+ |
+ PreParserExpression return_value = |
+ pre_parser_->ParseAssignmentExpression(accept_IN, classifier, ok); |
+ if (!*ok) return; |
+ |
+ body->Add(PreParserStatement::ExpressionStatement(return_value), zone()); |
+} |
+ |
#undef CHECK_OK |