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

Unified Diff: runtime/vm/json_stream.cc

Issue 1147913004: Emit json-rpc version in service protocol responses. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | runtime/vm/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 74522fee946857438152ac90b2283f7cabb81dca..efb1290cddbb62409d6677ef39b67639dbe86214 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -73,13 +73,13 @@ void JSONStream::Setup(Zone* zone,
isolate_name, method_);
setup_time_micros_ = OS::GetCurrentTimeMicros();
}
- buffer_.Printf("{\"result\":");
+ buffer_.Printf("{\"json-rpc\":\"2.0\", \"result\":");
}
void JSONStream::SetupError() {
buffer_.Clear();
- buffer_.Printf("{\"error\":");
+ buffer_.Printf("{\"json-rpc\":\"2.0\", \"error\":");
}
« no previous file with comments | « no previous file | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698