diff --git a/src/parser.cc b/src/parser.cc index e2677b5f0e..41667c2eac 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -3749,6 +3749,7 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser( reusable_preparser_->set_allow_arrow_functions(allow_arrow_functions()); reusable_preparser_->set_allow_harmony_numeric_literals( allow_harmony_numeric_literals()); + reusable_preparser_->set_allow_classes(allow_classes()); } PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction(strict_mode(),