| Index: src/prettyprinter.cc
|
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
|
| index da43d0eb0f870ad7097f80277d09f46fad47c41d..10514c2b867fd30261fc883cadf8e4b441deb7e3 100644
|
| --- a/src/prettyprinter.cc
|
| +++ b/src/prettyprinter.cc
|
| @@ -376,6 +376,13 @@ void CallPrinter::VisitCompareOperation(CompareOperation* node) {
|
| }
|
|
|
|
|
| +void CallPrinter::VisitSpreadOperation(SpreadOperation* node) {
|
| + Print("(...");
|
| + Find(node->expression(), true);
|
| + Print(")");
|
| +}
|
| +
|
| +
|
| void CallPrinter::VisitThisFunction(ThisFunction* node) {}
|
|
|
|
|
| @@ -871,6 +878,13 @@ void PrettyPrinter::VisitCompareOperation(CompareOperation* node) {
|
| }
|
|
|
|
|
| +void PrettyPrinter::VisitSpreadOperation(SpreadOperation* node) {
|
| + Print("(...");
|
| + Visit(node->expression());
|
| + Print(")");
|
| +}
|
| +
|
| +
|
| void PrettyPrinter::VisitThisFunction(ThisFunction* node) {
|
| Print("<this-function>");
|
| }
|
| @@ -1574,6 +1588,12 @@ void AstPrinter::VisitCompareOperation(CompareOperation* node) {
|
| }
|
|
|
|
|
| +void AstPrinter::VisitSpreadOperation(SpreadOperation* node) {
|
| + IndentedScope indent(this, "...");
|
| + Visit(node->expression());
|
| +}
|
| +
|
| +
|
| void AstPrinter::VisitThisFunction(ThisFunction* node) {
|
| IndentedScope indent(this, "THIS-FUNCTION");
|
| }
|
|
|