Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 7ba42e8715da8815d21102c93dbc568d96578cc3..e6b623ba5177bade9e4b228e892628c575d1cc75 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1046,18 +1046,18 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT |
void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT |
- os << "global_proxy "; |
- JSObjectPrint(os); |
- os << "native context : " << Brief(native_context()); |
- os << "\n"; |
+ JSObjectPrintHeader(os, this, "JSGlobalProxy"); |
+ os << "\n - native context = " << Brief(native_context()); |
+ os << "\n - hash = " << Brief(hash()); |
+ JSObjectPrintBody(os, this); |
} |
void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT |
- os << "global "; |
- JSObjectPrint(os); |
- os << "native context : " << Brief(native_context()); |
- os << "\n"; |
+ JSObjectPrintHeader(os, this, "JSGlobalObject"); |
+ os << "\n - native context = " << Brief(native_context()); |
+ os << "\n - global proxy = " << Brief(global_proxy()); |
+ JSObjectPrintBody(os, this); |
} |