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

Unified Diff: runtime/vm/object.cc

Issue 1166433008: 2nd attempt at adding streamListen/streamCancel to the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix context objects Created 5 years, 6 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/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | 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 3de3671f6e86d56d2180f3b9c3f2a56d6193d664..dc5bbbe689c02fdbb5d9b4cc52c066445500a1f5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13031,7 +13031,9 @@ void Context::PrintJSONImpl(JSONStream* stream, bool ref) const {
}
const Context& parent_context = Context::Handle(parent());
- jsobj.AddProperty("parent", parent_context);
+ if (!parent_context.IsNull()) {
+ jsobj.AddProperty("parent", parent_context);
+ }
JSONArray jsarr(&jsobj, "variables");
Object& var = Object::Handle();
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698