Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 4ed8f12841cf4afc95f70e090b42f158ac3bc080..5415eef42c78180c1e73e65d225882b1918ce8af 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -2616,6 +2616,11 @@ ParserBase<Traits>::ParseMemberExpressionContinuation( |
ParseTemplateLiteral(expression, pos, classifier, CHECK_OK); |
break; |
} |
+ case Token::ILLEGAL: { |
+ ReportUnexpectedTokenAt(scanner()->peek_location(), Token::ILLEGAL); |
+ *ok = false; |
+ return this->EmptyExpression(); |
+ } |
default: |
return expression; |
} |