Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index ac123bd10feb52e22380c68446a4fa49e4311bf9..37110e27b3484b909b037874f7534e10b5a9bc3b 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -114,6 +114,12 @@ void CallPrinter::VisitExpressionStatement(ExpressionStatement* node) { |
void CallPrinter::VisitEmptyStatement(EmptyStatement* node) {} |
+void CallPrinter::VisitSloppyBlockFunctionStatement( |
+ SloppyBlockFunctionStatement* node) { |
+ Find(node->statement()); |
+} |
+ |
+ |
void CallPrinter::VisitIfStatement(IfStatement* node) { |
Find(node->condition()); |
Find(node->then_statement()); |
@@ -499,6 +505,12 @@ void PrettyPrinter::VisitEmptyStatement(EmptyStatement* node) { |
} |
+void PrettyPrinter::VisitSloppyBlockFunctionStatement( |
+ SloppyBlockFunctionStatement* node) { |
+ Visit(node->statement()); |
+} |
+ |
+ |
void PrettyPrinter::VisitIfStatement(IfStatement* node) { |
Print("if ("); |
Visit(node->condition()); |
@@ -1216,6 +1228,12 @@ void AstPrinter::VisitEmptyStatement(EmptyStatement* node) { |
} |
+void AstPrinter::VisitSloppyBlockFunctionStatement( |
+ SloppyBlockFunctionStatement* node) { |
+ Visit(node->statement()); |
+} |
+ |
+ |
void AstPrinter::VisitIfStatement(IfStatement* node) { |
IndentedScope indent(this, "IF"); |
PrintIndentedVisit("CONDITION", node->condition()); |