| Index: src/parsing/pattern-rewriter.cc
|
| diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc
|
| index be1824508b343393fa7f5e5d4da7d1540b83dec6..65715a8a321b7f767f100a4ea19ed097951c7768 100644
|
| --- a/src/parsing/pattern-rewriter.cc
|
| +++ b/src/parsing/pattern-rewriter.cc
|
| @@ -164,7 +164,7 @@
|
| Scope* declaration_scope = IsLexicalVariableMode(descriptor_->mode)
|
| ? descriptor_->scope
|
| : descriptor_->scope->DeclarationScope();
|
| - if (declaration_scope->num_var() > kMaxNumFunctionLocals) {
|
| + if (declaration_scope->num_var_or_const() > kMaxNumFunctionLocals) {
|
| parser_->ReportMessage(MessageTemplate::kTooManyVariables);
|
| *ok_ = false;
|
| return;
|
|
|