Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 808c0c096458cf7aa0f0c8a0809b5abe7e4e3423..538cbc1314b51cfa470328d886e9a9d789702afc 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -425,9 +425,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
// wrap this new block in a try-finally statement, restore block_ to its |
// original value, and add the try-finally statement to block_. |
auto target = block_; |
- if (FLAG_harmony_iterator_close) { |
- block_ = factory()->NewBlock(nullptr, 8, true, nopos); |
- } |
+ block_ = factory()->NewBlock(nullptr, 8, true, nopos); |
Spread* spread = nullptr; |
for (Expression* value : *node->values()) { |
@@ -515,7 +513,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
block_->statements()->Add(if_not_done, zone()); |
if (!(value->IsLiteral() && value->AsLiteral()->raw_value()->IsTheHole())) { |
- if (FLAG_harmony_iterator_close) { |
+ { |
// completion = kAbruptCompletion; |
Expression* proxy = factory()->NewVariableProxy(completion); |
Expression* assignment = factory()->NewAssignment( |
@@ -527,7 +525,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
RecurseIntoSubpattern(value, factory()->NewVariableProxy(v)); |
- if (FLAG_harmony_iterator_close) { |
+ { |
// completion = kNormalCompletion; |
Expression* proxy = factory()->NewVariableProxy(completion); |
Expression* assignment = factory()->NewAssignment( |
@@ -640,13 +638,11 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
factory()->NewVariableProxy(array)); |
} |
- if (FLAG_harmony_iterator_close) { |
- Expression* closing_condition = factory()->NewUnaryOperation( |
- Token::NOT, factory()->NewVariableProxy(done), nopos); |
- parser_->FinalizeIteratorUse(completion, closing_condition, iterator, |
- block_, target); |
- block_ = target; |
- } |
+ Expression* closing_condition = factory()->NewUnaryOperation( |
+ Token::NOT, factory()->NewVariableProxy(done), nopos); |
+ parser_->FinalizeIteratorUse(completion, closing_condition, iterator, block_, |
+ target); |
+ block_ = target; |
} |