Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 2a194ee14b32d9145bddd82f26285ab86ad81241..69626d72f2e13573c55d9a2ab560a3c81cddcdd0 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -17,6 +17,8 @@ void Parser::PatternRewriter::DeclareAndInitializeVariables( |
ZoneList<const AstRawString*>* names, bool* ok) { |
PatternRewriter rewriter; |
+ DCHECK(block->ignore_completion_value()); |
+ |
rewriter.scope_ = declaration_descriptor->scope; |
rewriter.parser_ = declaration_descriptor->parser; |
rewriter.context_ = BINDING; |
@@ -358,7 +360,7 @@ void Parser::PatternRewriter::VisitRewritableExpression( |
PatternContext old_context = SetAssignmentContextIfNeeded(initializer); |
int pos = assign->position(); |
Block* old_block = block_; |
- block_ = factory()->NewBlock(nullptr, 8, false, pos); |
+ block_ = factory()->NewBlock(nullptr, 8, true, pos); |
Variable* temp = nullptr; |
Expression* pattern = assign->target(); |
Expression* old_value = current_value_; |