Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 57957e602db392118bb2caa00e222d25e4ef6b2f..d1a1391a5cf2315d84f8c678e54ca68e193dc318 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -465,7 +465,7 @@ void Symbol::SymbolPrint(std::ostream& os) { // NOLINT |
HeapObject::PrintHeader(os, "Symbol"); |
os << "\n - hash: " << Hash(); |
os << "\n - name: " << Brief(name()); |
- if (name()->IsUndefined()) { |
+ if (name()->IsUndefined(GetIsolate())) { |
os << " (" << PrivateSymbolToName() << ")"; |
} |
os << "\n - private: " << is_private(); |
@@ -1222,7 +1222,7 @@ void Name::NameShortPrint() { |
} else { |
DCHECK(this->IsSymbol()); |
Symbol* s = Symbol::cast(this); |
- if (s->name()->IsUndefined()) { |
+ if (s->name()->IsUndefined(GetIsolate())) { |
PrintF("#<%s>", s->PrivateSymbolToName()); |
} else { |
PrintF("<%s>", String::cast(s->name())->ToCString().get()); |
@@ -1237,7 +1237,7 @@ int Name::NameShortPrint(Vector<char> str) { |
} else { |
DCHECK(this->IsSymbol()); |
Symbol* s = Symbol::cast(this); |
- if (s->name()->IsUndefined()) { |
+ if (s->name()->IsUndefined(GetIsolate())) { |
return SNPrintF(str, "#<%s>", s->PrivateSymbolToName()); |
} else { |
return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get()); |