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