Index: runtime/vm/object_service.cc |
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc |
index 7eab800fca551018bbb01e41470f74c682ce30a2..84708d721483fe1a76d727e8eb2b3c99f9b21bcd 100644 |
--- a/runtime/vm/object_service.cc |
+++ b/runtime/vm/object_service.cc |
@@ -1135,15 +1135,15 @@ void Type::PrintJSONImpl(JSONStream* stream, bool ref) const { |
JSONObject jsobj(stream); |
PrintSharedInstanceJSON(&jsobj, ref); |
jsobj.AddProperty("kind", "Type"); |
- if (IsCanonical()) { |
+ if (HasResolvedTypeClass()) { |
const Class& type_cls = Class::Handle(type_class()); |
if (type_cls.CanonicalType() == raw()) { |
intptr_t cid = type_cls.id(); |
jsobj.AddFixedServiceId("classes/%" Pd "/types/%d", cid, 0); |
- jsobj.AddProperty("typeClass", type_cls); |
} else { |
jsobj.AddServiceId(*this); |
} |
+ jsobj.AddProperty("typeClass", type_cls); |
} else { |
jsobj.AddServiceId(*this); |
} |