Index: src/pattern-rewriter.cc |
diff --git a/src/pattern-rewriter.cc b/src/pattern-rewriter.cc |
index 6969cf214ed70034fce8f58a737724ab4b600700..0d2d78e6a351c859d875775e34d295cc9b7bfb1e 100644 |
--- a/src/pattern-rewriter.cc |
+++ b/src/pattern-rewriter.cc |
@@ -214,7 +214,7 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) { |
Variable* Parser::PatternRewriter::CreateTempVar(Expression* value) { |
- auto temp_scope = descriptor_->parser->scope_->DeclarationScope(); |
+ auto temp_scope = descriptor_->parser->scope_->TempScope(); |
auto temp = temp_scope->NewTemporary(ast_value_factory()->empty_string()); |
if (value != nullptr) { |
auto assignment = factory()->NewAssignment( |