Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index d1b64bacb6f0d5848cb13a44149db892201405bf..13d8bf8a34f9f450a90a6a7ed02ea2c5aab7ef44 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -324,7 +324,11 @@ void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) { |
} |
-void AstNumberingVisitor::VisitSpread(Spread* node) { UNREACHABLE(); } |
+void AstNumberingVisitor::VisitSpread(Spread* node) { |
+ IncrementNodeCount(); |
+ DisableOptimization(kSpread); |
+ Visit(node->expression()); |
+} |
void AstNumberingVisitor::VisitForInStatement(ForInStatement* node) { |