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

Unified Diff: runtime/vm/service.cc

Issue 241253002: VM Service: Include a response id when enumerating scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 045dbe45b8ace845c2ac78ac8302b153a966901c..5ca1df3257194e98d2653d3c7d30197438abd828 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -1252,6 +1252,7 @@ static bool HandleObjects(Isolate* isolate, JSONStream* js) {
static bool HandleScriptsEnumerate(Isolate* isolate, JSONStream* js) {
JSONObject jsobj(js);
jsobj.AddProperty("type", "ScriptList");
+ jsobj.AddProperty("id", "scripts");
JSONArray members(&jsobj, "members");
const GrowableObjectArray& libs =
GrowableObjectArray::Handle(isolate->object_store()->libraries());

Powered by Google App Engine
This is Rietveld 408576698