Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index be1824508b343393fa7f5e5d4da7d1540b83dec6..5a2791bdcee89eee851da85ddabc79bfdb1aefde 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -328,7 +328,7 @@ void Parser::PatternRewriter::VisitRewritableExpression( |
// perform BindingPattern rewriting |
DCHECK(!node->is_rewritten()); |
node->Rewrite(node->expression()); |
- return node->expression()->Accept(this); |
+ return Visit(node->expression()); |
} |
if (node->is_rewritten()) return; |
@@ -730,8 +730,6 @@ void Parser::PatternRewriter::VisitProperty(v8::internal::Property* node) { |
// =============== UNREACHABLE ============================= |
-void Parser::PatternRewriter::Visit(AstNode* node) { UNREACHABLE(); } |
- |
#define NOT_A_PATTERN(Node) \ |
void Parser::PatternRewriter::Visit##Node(v8::internal::Node*) { \ |
UNREACHABLE(); \ |