| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 5c138fe05b5bbd4ee5c938593c71a2df3bfcc076..28d39c17ed32a189d7b2a4b12fcf4bd77acc08c4 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -1549,6 +1549,11 @@ void Object::PrintJSON(JSONStream* stream, bool ref) const {
|
| jsobj.AddProperty("type", ref ? "@Null" : "Null");
|
| jsobj.AddProperty("id", "objects/null");
|
| jsobj.AddProperty("valueAsString", "null");
|
| + if (!ref) {
|
| + const Class& cls = Class::Handle(this->clazz());
|
| + jsobj.AddProperty("class", cls);
|
| + jsobj.AddProperty("size", raw()->Size());
|
| + }
|
| } else {
|
| PrintJSONImpl(stream, ref);
|
| }
|
|
|