Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index c0fdf48ff1b8656541527eeda4c7d26806d38b05..df6183a3662b8e4416034cb1cb0075dc02da4d68 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -362,7 +362,7 @@ void PrettyPrinter::VisitThrow(Throw* node) { |
void PrettyPrinter::VisitProperty(Property* node) { |
Expression* key = node->key(); |
Literal* literal = key->AsLiteral(); |
- if (literal != NULL && literal->handle()->IsSymbol()) { |
+ if (literal != NULL && literal->handle()->IsInternalizedString()) { |
Print("("); |
Visit(node->obj()); |
Print(")."); |
@@ -1068,7 +1068,7 @@ void AstPrinter::VisitProperty(Property* node) { |
IndentedScope indent(this, "PROPERTY", node); |
Visit(node->obj()); |
Literal* literal = node->key()->AsLiteral(); |
- if (literal != NULL && literal->handle()->IsSymbol()) { |
+ if (literal != NULL && literal->handle()->IsInternalizedString()) { |
PrintLiteralIndented("NAME", literal->handle(), false); |
} else { |
PrintIndentedVisit("KEY", node->key()); |