Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index b4e4176d657f47d00b52c958eb029fb20150a8b3..1f267d34905241f59bf5f357138f72d56a83bd1a 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4583,6 +4583,12 @@ Block* Parser::BuildParameterInitializationBlock( |
param_block = factory()->NewBlock(NULL, 8, true, RelocInfo::kNoPosition); |
param_block->set_scope(param_scope); |
descriptor.hoist_scope = scope_; |
+ // Pass the appropriate scope in so that PatternRewriter can appropriately |
+ // rewrite inner initializers of the pattern to param_scope |
+ descriptor.scope = param_scope; |
+ // Rewrite the outer initializer to point to param_scope |
+ RewriteParameterInitializerScope(stack_limit(), initial_value, scope_, |
+ param_scope); |
} |
{ |