Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 8171f9433a4627c9b8fe5f1c5ac6a72d73a9ae4a..41b3a31f0e1169068eaf2968fe55b67fc3904ee4 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2013,6 +2013,11 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseArrayLiteral( |
while (peek() != Token::RBRACK) { |
ExpressionT elem = this->EmptyExpression(); |
if (peek() == Token::COMMA) { |
+ if (is_strong(language_mode())) { |
+ ReportMessageAt(scanner()->peek_location(), "strong_ellision"); |
+ *ok = false; |
+ return this->EmptyExpression(); |
+ } |
elem = this->GetLiteralTheHole(peek_position(), factory()); |
} else { |
elem = this->ParseAssignmentExpression(true, CHECK_OK); |