| Index: src/ast/prettyprinter.cc
|
| diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
|
| index 1f6b8c31debb8376d3aff273ab6c7d8e40b0fed7..d9d8a12a94a4ed861948fa0f9d98c66e9ae77c65 100644
|
| --- a/src/ast/prettyprinter.cc
|
| +++ b/src/ast/prettyprinter.cc
|
| @@ -719,7 +719,7 @@ void PrettyPrinter::VisitFunctionLiteral(FunctionLiteral* node) {
|
|
|
| void PrettyPrinter::VisitClassLiteral(ClassLiteral* node) {
|
| Print("(class ");
|
| - PrintLiteral(node->name(), false);
|
| + PrintLiteral(node->constructor()->name(), false);
|
| if (node->extends()) {
|
| Print(" extends ");
|
| Visit(node->extends());
|
| @@ -1429,9 +1429,7 @@ void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) {
|
|
|
| void AstPrinter::VisitClassLiteral(ClassLiteral* node) {
|
| IndentedScope indent(this, "CLASS LITERAL", node->position());
|
| - if (node->raw_name() != nullptr) {
|
| - PrintLiteralIndented("NAME", node->name(), false);
|
| - }
|
| + PrintLiteralIndented("NAME", node->constructor()->name(), false);
|
| if (node->extends() != nullptr) {
|
| PrintIndentedVisit("EXTENDS", node->extends());
|
| }
|
|
|