Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 2e4057bd3d548b399096957a0c1e04492af52ae6..cb197c9fbf98d1fb4cda0c4d9c277b93750c9c5d 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -141,8 +141,8 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) { |
// an initial value in the declaration (because they are initialized upon |
// entering the function). |
const AstRawString* name = pattern->raw_name(); |
- VariableProxy* proxy = descriptor_->scope->NewUnresolved( |
- factory(), name, parser_->scanner()->location().beg_pos, |
+ VariableProxy* proxy = factory()->NewVariableProxy( |
+ name, NORMAL_VARIABLE, parser_->scanner()->location().beg_pos, |
parser_->scanner()->location().end_pos); |
Declaration* declaration = factory()->NewVariableDeclaration( |
proxy, descriptor_->scope, descriptor_->declaration_pos); |