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