Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 33123a7f6fb1812bcb0d0366df5412c16a4a566f..f49e96c04d90511a9a0385e150ec0861ffd96c6b 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -1168,8 +1168,8 @@ PreParserExpression PreParser::ParseClassLiteral( |
CheckNoTailCallExpressions(&extends_classifier, CHECK_OK); |
ValidateExpression(&extends_classifier, CHECK_OK); |
if (classifier != nullptr) { |
- classifier->Accumulate(&extends_classifier, |
- ExpressionClassifier::ExpressionProductions); |
+ classifier->AccumulateFormalParameterContainmentErrors( |
+ &extends_classifier); |
} |
} |
@@ -1189,8 +1189,8 @@ PreParserExpression PreParser::ParseClassLiteral( |
&has_seen_constructor, &property_classifier, &name, CHECK_OK); |
ValidateExpression(&property_classifier, CHECK_OK); |
if (classifier != nullptr) { |
- classifier->Accumulate(&property_classifier, |
- ExpressionClassifier::ExpressionProductions); |
+ classifier->AccumulateFormalParameterContainmentErrors( |
+ &property_classifier); |
} |
} |