Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index e6b2e6b24b78034f7211759c6a59f50819e4d477..02944df0e4eb4ef68c28ffacbcb830c66c34ccf4 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -389,10 +389,11 @@ void JSObject::JSObjectPrint(OStream& os) { // NOLINT |
HeapObject::PrintHeader(os, "JSObject"); |
// Don't call GetElementsKind, its validation code can cause the printer to |
// fail when debugging. |
+ PrototypeIterator iter(GetIsolate(), this); |
os << " - map = " << reinterpret_cast<void*>(map()) << " [" |
<< ElementsKindToString(this->map()->elements_kind()) |
- << "]\n - prototype = " << reinterpret_cast<void*>(GetPrototype()) << "\n" |
- << " {\n"; |
+ << "]\n - prototype = " << reinterpret_cast<void*>(iter.GetCurrent()) |
+ << "\n {\n"; |
PrintProperties(os); |
PrintTransitions(os); |
PrintElements(os); |