Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index f3d9bb02a33bec518052372f713aec08ea3ef756..3a36fcb4491adc6fa96cd4718faff1ee1382e63f 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -359,7 +359,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
DCHECK(block_->ignore_completion_value()); |
auto temp = *temp_var = CreateTempVar(current_value_); |
- auto iterator = CreateTempVar(parser_->GetIterator( |
+ auto iterator = CreateTempVar(factory()->NewGetIterator( |
factory()->NewVariableProxy(temp), kNoSourcePosition)); |
auto done = |
CreateTempVar(factory()->NewBooleanLiteral(false, kNoSourcePosition)); |
@@ -667,6 +667,7 @@ NOT_A_PATTERN(DoExpression) |
NOT_A_PATTERN(DoWhileStatement) |
NOT_A_PATTERN(EmptyStatement) |
NOT_A_PATTERN(EmptyParentheses) |
+NOT_A_PATTERN(GetIterator) |
neis
2016/12/07 10:17:27
Looks like this list was sorted.
caitp
2016/12/07 14:49:41
Done.
|
NOT_A_PATTERN(ExpressionStatement) |
NOT_A_PATTERN(ForInStatement) |
NOT_A_PATTERN(ForOfStatement) |