| Index: src/prettyprinter.cc
|
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
|
| index 284beadfeedb5a7dc64472a6372a4091e6a42eff..ea273ef6aa89addadbf796a744bba97b9886c52c 100644
|
| --- a/src/prettyprinter.cc
|
| +++ b/src/prettyprinter.cc
|
| @@ -433,10 +433,10 @@ PrettyPrinter::~PrettyPrinter() {
|
|
|
|
|
| void PrettyPrinter::VisitBlock(Block* node) {
|
| - if (!node->is_initializer_block()) Print("{ ");
|
| + if (!node->ignore_completion_values()) Print("{ ");
|
| PrintStatements(node->statements());
|
| if (node->statements()->length() > 0) Print(" ");
|
| - if (!node->is_initializer_block()) Print("}");
|
| + if (!node->ignore_completion_values()) Print("}");
|
| }
|
|
|
|
|
| @@ -1146,7 +1146,8 @@ void AstPrinter::PrintArguments(ZoneList<Expression*>* arguments) {
|
|
|
|
|
| void AstPrinter::VisitBlock(Block* node) {
|
| - const char* block_txt = node->is_initializer_block() ? "BLOCK INIT" : "BLOCK";
|
| + const char* block_txt =
|
| + node->ignore_completion_values() ? "BLOCK NOCOMPLETIONS" : "BLOCK";
|
| IndentedScope indent(this, block_txt);
|
| PrintStatements(node->statements());
|
| }
|
|
|