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

Unified Diff: tools/ddbg.dart

Issue 11928002: Update ddbg.dart for async and json changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change to import json with a prefix Created 7 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
diff --git a/tools/ddbg.dart b/tools/ddbg.dart
index c7febadf3420252574d89a4c0e0d46f6d6f2bc01..de213644fa52122f08235f20a295f330a61b3fdb 100644
--- a/tools/ddbg.dart
+++ b/tools/ddbg.dart
@@ -6,8 +6,9 @@
// connection port.
import "dart:io";
-import "dart:json";
+import "dart:json" as json;
import "dart:utf";
+import "dart:async";
Map<int, Completer> outstandingCommands;
@@ -66,9 +67,9 @@ Future sendCmd(Map<String, dynamic> cmd) {
int id = cmd["id"];
outstandingCommands[id] = completer;
if (verbose) {
- print("sending: '${jsonStringify(cmd)}'");
+ print("sending: '${json.stringify(cmd)}'");
}
- vmStream.writeString(jsonStringify(cmd));
+ vmStream.writeString(json.stringify(cmd));
return completer.future;
}
@@ -410,8 +411,8 @@ void handlePausedEvent(msg) {
}
-void processVmMessage(String json) {
- var msg = parseJson(json);
+void processVmMessage(String jsonString) {
+ var msg = json.parse(jsonString);
if (msg == null) {
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698