Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 310c277fed40fbfa4d16b219cb51fe56ceacc75b..1831a2927db40eb92d5aadbd584e2ed671f50b4e 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -147,7 +147,9 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) { |
// pre-resolve the proxy because it resides in the same scope as the |
// declaration. |
const AstRawString* name = pattern->raw_name(); |
- VariableProxy* proxy = parser_->NewUnresolved(name, descriptor_->mode); |
+ VariableProxy* proxy = descriptor_->scope->NewUnresolved( |
+ factory(), name, parser_->scanner()->location().beg_pos, |
+ parser_->scanner()->location().end_pos); |
Declaration* declaration = factory()->NewVariableDeclaration( |
proxy, descriptor_->scope, descriptor_->declaration_pos); |
Variable* var = parser_->Declare(declaration, descriptor_->declaration_kind, |