| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 08941f501f333511f612603e597e627327fc9373..5f849a599e1715a1198c66fa55d6514ee72a5eb4 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -2156,6 +2156,12 @@ Block* Parser::ParseVariableDeclarations(
|
| bool is_const = false;
|
| Token::Value init_op = Token::INIT_VAR;
|
| if (peek() == Token::VAR) {
|
| + if (is_strong(language_mode())) {
|
| + Scanner::Location location = scanner()->peek_location();
|
| + ReportMessageAt(location, "strong_var");
|
| + *ok = false;
|
| + return NULL;
|
| + }
|
| Consume(Token::VAR);
|
| } else if (peek() == Token::CONST) {
|
| Consume(Token::CONST);
|
|
|