Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 40b4decb7203441d32fddcb5ee335824aafae4e4..caf0f868fdb396e269e646717211af563e5fcec9 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3101,8 +3101,11 @@ TryStatement* Parser::ParseTryStatement(bool* ok) { |
pattern, pattern->position(), |
factory()->NewVariableProxy(catch_variable)); |
+ Block* init_block = |
+ factory()->NewBlock(nullptr, 8, true, RelocInfo::kNoPosition); |
PatternRewriter::DeclareAndInitializeVariables( |
- catch_block, &descriptor, &decl, nullptr, CHECK_OK); |
+ init_block, &descriptor, &decl, nullptr, CHECK_OK); |
+ catch_block->statements()->Add(init_block, zone()); |
} |
Expect(Token::LBRACE, CHECK_OK); |