| Index: src/pattern-rewriter.cc
|
| diff --git a/src/pattern-rewriter.cc b/src/pattern-rewriter.cc
|
| index a487a10c3597fc51155827b2bacc2a37c050b4a7..6969cf214ed70034fce8f58a737724ab4b600700 100644
|
| --- a/src/pattern-rewriter.cc
|
| +++ b/src/pattern-rewriter.cc
|
| @@ -53,7 +53,8 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) {
|
| Declaration* declaration = factory()->NewVariableDeclaration(
|
| proxy, descriptor_->mode, descriptor_->scope,
|
| descriptor_->declaration_pos);
|
| - Variable* var = parser->Declare(declaration, descriptor_->mode != VAR, ok_);
|
| + Variable* var = parser->Declare(declaration, descriptor_->declaration_kind,
|
| + descriptor_->mode != VAR, ok_);
|
| if (!*ok_) return;
|
| DCHECK_NOT_NULL(var);
|
| DCHECK(!proxy->is_resolved() || proxy->var() == var);
|
|
|