Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index edd283e9d62f7a484b4f16a7149b0ab4d7903ae2..8201a146eb36bc25be7c3ff0a4f72d6292f73f17 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -448,7 +448,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
factory()->NewExpressionStatement( |
parser_->BuildIteratorNextResult( |
factory()->NewVariableProxy(iterator), result, |
- kNoSourcePosition), |
+ IteratorType::kNormal, kNoSourcePosition), |
kNoSourcePosition), |
zone()); |
next_block->statements()->Add(inner_if, zone()); |
@@ -522,7 +522,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
// result = IteratorNext(iterator); |
Statement* get_next = factory()->NewExpressionStatement( |
parser_->BuildIteratorNextResult(factory()->NewVariableProxy(iterator), |
- result, nopos), |
+ result, IteratorType::kNormal, nopos), |
nopos); |
// %AppendElement(array, result.value); |
@@ -591,7 +591,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
Token::NOT, factory()->NewVariableProxy(done), nopos); |
parser_->FinalizeIteratorUse(scope(), completion, closing_condition, iterator, |
- block_, target); |
+ block_, target, IteratorType::kNormal); |
block_ = target; |
} |