| Index: src/objects-printer.cc
|
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc
|
| index 0a022ae8312cc2e389c89b82ceb101f54af2851d..6fe3035fc00b394096c647efbce6a41bfbffd5a5 100644
|
| --- a/src/objects-printer.cc
|
| +++ b/src/objects-printer.cc
|
| @@ -419,6 +419,9 @@ static void JSObjectPrintHeader(std::ostream& os, JSObject* obj,
|
| os << " (COW)";
|
| }
|
| os << "]";
|
| + if (obj->GetInternalFieldCount() > 0) {
|
| + os << "\n - internal fields: " << obj->GetInternalFieldCount();
|
| + }
|
| }
|
|
|
|
|
| @@ -432,6 +435,14 @@ static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT
|
| obj->PrintElements(os);
|
| os << "\n }\n";
|
| }
|
| + int internal_fields = obj->GetInternalFieldCount();
|
| + if (internal_fields > 0) {
|
| + os << " - internal fields = {";
|
| + for (int i = 0; i < internal_fields; i++) {
|
| + os << "\n " << Brief(obj->GetInternalField(i));
|
| + }
|
| + os << "\n }\n";
|
| + }
|
| }
|
|
|
|
|
|
|