Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index cee56d176e9ed482c5e7339fc6c46453f8e08d96..d03815c44d99e14f4b0e70ac171ec0663f11bfd8 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -2353,6 +2353,7 @@ ParserBase<Traits>::ParseLeftHandSideExpression( |
while (true) { |
switch (peek()) { |
case Token::LBRACK: { |
+ result = Traits::RewriteNonPattern(result, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
Consume(Token::LBRACK); |
@@ -2429,6 +2430,7 @@ ParserBase<Traits>::ParseLeftHandSideExpression( |
} |
case Token::PERIOD: { |
+ result = Traits::RewriteNonPattern(result, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
Consume(Token::PERIOD); |
@@ -2442,6 +2444,7 @@ ParserBase<Traits>::ParseLeftHandSideExpression( |
case Token::TEMPLATE_SPAN: |
case Token::TEMPLATE_TAIL: { |
+ result = Traits::RewriteNonPattern(result, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
result = ParseTemplateLiteral(result, position(), classifier, CHECK_OK); |
@@ -2780,6 +2783,8 @@ ParserBase<Traits>::ParseMemberExpressionContinuation( |
while (true) { |
switch (peek()) { |
case Token::LBRACK: { |
+ expression = |
+ Traits::RewriteNonPattern(expression, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
@@ -2795,6 +2800,8 @@ ParserBase<Traits>::ParseMemberExpressionContinuation( |
break; |
} |
case Token::PERIOD: { |
+ expression = |
+ Traits::RewriteNonPattern(expression, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
@@ -2810,6 +2817,8 @@ ParserBase<Traits>::ParseMemberExpressionContinuation( |
} |
case Token::TEMPLATE_SPAN: |
case Token::TEMPLATE_TAIL: { |
+ expression = |
+ Traits::RewriteNonPattern(expression, classifier, CHECK_OK); |
BindingPatternUnexpectedToken(classifier); |
ArrowFormalParametersUnexpectedToken(classifier); |
int pos; |