| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 09c9be4b41c2903c1584b5f44bb975fad177d822..068b677094fdbac0b9f07c62119590d4ef240540 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -4750,7 +4750,7 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
|
| block_scope->set_start_position(scanner()->location().end_pos);
|
| ExpressionClassifier classifier;
|
| extends = ParseLeftHandSideExpression(&classifier, CHECK_OK);
|
| - extends = ParserTraits::RewriteExpression(extends, &classifier, CHECK_OK);
|
| + extends = ParserTraits::RewriteNonPattern(extends, &classifier, CHECK_OK);
|
| } else {
|
| block_scope->set_start_position(scanner()->location().end_pos);
|
| }
|
| @@ -5392,9 +5392,9 @@ void ParserTraits::RewriteDestructuringAssignments() {
|
| }
|
|
|
|
|
| -Expression* ParserTraits::RewriteExpression(
|
| +Expression* ParserTraits::RewriteNonPattern(
|
| Expression* expr, const ExpressionClassifier* classifier, bool* ok) {
|
| - return parser_->RewriteExpression(expr, classifier, ok);
|
| + return parser_->RewriteNonPattern(expr, classifier, ok);
|
| }
|
|
|
|
|
| @@ -5405,7 +5405,7 @@ ObjectLiteralProperty* ParserTraits::RewriteObjectLiteralProperty(
|
| }
|
|
|
|
|
| -Expression* Parser::RewriteExpression(Expression* expr,
|
| +Expression* Parser::RewriteNonPattern(Expression* expr,
|
| const ExpressionClassifier* classifier,
|
| bool* ok) {
|
| // For the time being, this does no rewriting at all.
|
| @@ -5418,9 +5418,9 @@ ObjectLiteralProperty* Parser::RewriteObjectLiteralProperty(
|
| ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
|
| bool* ok) {
|
| if (property != nullptr) {
|
| - Expression* key = RewriteExpression(property->key(), classifier, ok);
|
| + Expression* key = RewriteNonPattern(property->key(), classifier, ok);
|
| property->set_key(key);
|
| - Expression* value = RewriteExpression(property->value(), classifier, ok);
|
| + Expression* value = RewriteNonPattern(property->value(), classifier, ok);
|
| property->set_value(value);
|
| }
|
| return property;
|
|
|