| Index: src/parsing/pattern-rewriter.cc
|
| diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc
|
| index 30d521dfa76c47616cbdaf9ecf89399881263795..e8a1810bb04744db47a9279b66143e6b7cb36ddf 100644
|
| --- a/src/parsing/pattern-rewriter.cc
|
| +++ b/src/parsing/pattern-rewriter.cc
|
| @@ -151,9 +151,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_->declaration_kind,
|
| - descriptor_->mode != VAR, ok_, descriptor_->hoist_scope);
|
| + Variable* var = parser_->Declare(declaration, descriptor_->declaration_kind,
|
| + ok_, descriptor_->hoist_scope);
|
| if (!*ok_) return;
|
| DCHECK_NOT_NULL(var);
|
| DCHECK(!proxy->is_resolved() || proxy->var() == var);
|
|
|