Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1347)

Unified Diff: runtime/vm/object.cc

Issue 204983008: Rework how ServiceObjects are created and cached in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js / fix 1 bug Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/service.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index fbab42f1df58358c173e3a0d147573bccdc95db5..c6621370bd0f7107283a536c386b5a14ecc71dc8 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -3848,7 +3848,10 @@ void Class::PrintToJSONStream(JSONStream* stream, bool ref) const {
jsobj.AddProperty("patch", is_patch());
jsobj.AddProperty("finalized", is_finalized());
jsobj.AddProperty("const", is_const());
- jsobj.AddProperty("super", Class::Handle(SuperClass()));
+ const Class& superClass = Class::Handle(SuperClass());
+ if (!superClass.IsNull()) {
+ jsobj.AddProperty("super", superClass);
+ }
jsobj.AddProperty("library", Object::Handle(library()));
const Script& script = Script::Handle(this->script());
if (!script.IsNull()) {
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/service.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698