Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 165e71721228ce6abae4820d27c50c52d53072d2..78b73d6add58dfe9aa738e238787011dab6ceb30 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -375,6 +375,13 @@ void CallPrinter::VisitCompareOperation(CompareOperation* node) { |
} |
+void CallPrinter::VisitSpread(Spread* node) { |
+ Print("(..."); |
+ Find(node->expression(), true); |
+ Print(")"); |
+} |
+ |
+ |
void CallPrinter::VisitThisFunction(ThisFunction* node) {} |
@@ -870,6 +877,13 @@ void PrettyPrinter::VisitCompareOperation(CompareOperation* node) { |
} |
+void PrettyPrinter::VisitSpread(Spread* node) { |
+ Print("(..."); |
+ Visit(node->expression()); |
+ Print(")"); |
+} |
+ |
+ |
void PrettyPrinter::VisitThisFunction(ThisFunction* node) { |
Print("<this-function>"); |
} |
@@ -1573,6 +1587,12 @@ void AstPrinter::VisitCompareOperation(CompareOperation* node) { |
} |
+void AstPrinter::VisitSpread(Spread* node) { |
+ IndentedScope indent(this, "..."); |
+ Visit(node->expression()); |
+} |
+ |
+ |
void AstPrinter::VisitThisFunction(ThisFunction* node) { |
IndentedScope indent(this, "THIS-FUNCTION"); |
} |