Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index e71489fa7f2c401111468f7de94d55bf24075a4a..bf28cc6378749a94217a0949bd04da43a01fc11b 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -360,6 +360,11 @@ void CallPrinter::VisitSpread(Spread* node) { |
} |
+void CallPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
+ UNREACHABLE(); |
+} |
+ |
+ |
void CallPrinter::VisitThisFunction(ThisFunction* node) {} |
@@ -845,6 +850,11 @@ void PrettyPrinter::VisitSpread(Spread* node) { |
} |
+void PrettyPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
+ Print("()"); |
+} |
+ |
+ |
void PrettyPrinter::VisitThisFunction(ThisFunction* node) { |
Print("<this-function>"); |
} |
@@ -1565,6 +1575,11 @@ void AstPrinter::VisitSpread(Spread* node) { |
} |
+void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) { |
+ IndentedScope indent(this, "()"); |
+} |
+ |
+ |
void AstPrinter::VisitThisFunction(ThisFunction* node) { |
IndentedScope indent(this, "THIS-FUNCTION"); |
} |