Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 247f3f57c6cce3148c1013f4c67dc8cdeb550357..ef4437250339e7926e91c8659f2dd99a33b27ac1 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -12,7 +12,8 @@ namespace v8 { |
namespace internal { |
void Parser::PatternRewriter::DeclareAndInitializeVariables( |
- Block* block, const DeclarationDescriptor* declaration_descriptor, |
+ Parser* parser, Block* block, |
+ const DeclarationDescriptor* declaration_descriptor, |
const DeclarationParsingResult::Declaration* declaration, |
ZoneList<const AstRawString*>* names, bool* ok) { |
PatternRewriter rewriter; |
@@ -20,7 +21,7 @@ void Parser::PatternRewriter::DeclareAndInitializeVariables( |
DCHECK(block->ignore_completion_value()); |
rewriter.scope_ = declaration_descriptor->scope; |
- rewriter.parser_ = declaration_descriptor->parser; |
+ rewriter.parser_ = parser; |
rewriter.context_ = BINDING; |
rewriter.pattern_ = declaration->pattern; |
rewriter.initializer_position_ = declaration->initializer_position; |