| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 249c9ced35309b935b441a8d917f149c017f5ef5..de3bcf9eeb3a1cc63139043ea7f3b3bd332ac039 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -1515,6 +1515,11 @@ Block* Parser::ParseVariableDeclarations(bool accept_IN,
|
| Consume(Token::VAR);
|
| } else if (peek() == Token::CONST) {
|
| Consume(Token::CONST);
|
| + if (temp_scope_->StrictMode()) {
|
| + ReportMessage("strict_const", Vector<const char*>::empty());
|
| + *ok = false;
|
| + return NULL;
|
| + }
|
| mode = Variable::CONST;
|
| is_const = true;
|
| } else {
|
|
|