Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 65466559b4be24c52049e3f05e4dea9a10bbe4db..bb365472c7a588e81bdd3544a68141fb1f0ad8fd 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4613,6 +4613,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); |
} |
{ |