Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 66241e1a11aae9e4b17adb3f467dae154aec602e..09cb40267864be51f2b87ff8f2d741eca7ba0310 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3017,8 +3017,11 @@ TryStatement* Parser::ParseTryStatement(bool* ok) { |
descriptor.declaration_pos = pattern->position(); |
descriptor.initialization_pos = pattern->position(); |
+ // Initializer position for variables declared by the pattern. |
+ const int initializer_position = position(); |
+ |
DeclarationParsingResult::Declaration decl( |
- pattern, pattern->position(), |
+ pattern, initializer_position, |
factory()->NewVariableProxy(catch_variable)); |
Block* init_block = |