| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 9060868a3ff0e08ec3746221078ae87ad75924d5..1801aea3537f4e129373692b079e583f920e5c83 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -4677,8 +4677,8 @@ Expression* Parser::ParseClassLiteral(ExpressionClassifier* classifier,
|
| CheckNoTailCallExpressions(&extends_classifier, CHECK_OK);
|
| RewriteNonPattern(&extends_classifier, CHECK_OK);
|
| if (classifier != nullptr) {
|
| - classifier->Accumulate(&extends_classifier,
|
| - ExpressionClassifier::ExpressionProductions);
|
| + classifier->AccumulateFormalParameterContainmentErrors(
|
| + &extends_classifier);
|
| }
|
| } else {
|
| block_state.set_start_position(scanner()->location().end_pos);
|
| @@ -4706,8 +4706,8 @@ Expression* Parser::ParseClassLiteral(ExpressionClassifier* classifier,
|
| &has_seen_constructor, &property_classifier, &property_name, CHECK_OK);
|
| RewriteNonPattern(&property_classifier, CHECK_OK);
|
| if (classifier != nullptr) {
|
| - classifier->Accumulate(&property_classifier,
|
| - ExpressionClassifier::ExpressionProductions);
|
| + classifier->AccumulateFormalParameterContainmentErrors(
|
| + &property_classifier);
|
| }
|
|
|
| if (has_seen_constructor && constructor == nullptr) {
|
|
|