Index: pkg/compiler/tool/track_memory.dart |
diff --git a/pkg/compiler/tool/track_memory.dart b/pkg/compiler/tool/track_memory.dart |
index effd92f000fb3b93fad985d8be7892f6a96b9d8d..c5f5d04aa541fe55553597184c701c014bc89a1d 100644 |
--- a/pkg/compiler/tool/track_memory.dart |
+++ b/pkg/compiler/tool/track_memory.dart |
@@ -63,15 +63,11 @@ _resumeMainIsolateIfPaused() async { |
} |
/// Send a message to the vm service. |
-Future _sendMessage(String method, [Map args= const {}]) { |
+Future _sendMessage(String method, [Map args = const {}]) { |
var id = _requestId++; |
_pendingResponses[id] = new Completer(); |
- socket.add(JSON.encode({ |
- 'jsonrpc': '2.0', |
- 'id': '$id', |
- 'method': '$method', |
- 'params': args, |
- })); |
+ socket.add(JSON.encode( |
+ {'jsonrpc': '2.0', 'id': '$id', 'method': '$method', 'params': args,})); |
return _pendingResponses[id].future; |
} |
@@ -101,7 +97,8 @@ _handleDebug(Map json) { |
var isolateId = json['params']['event']['isolate']['id']; |
if (json['params']['event']['kind'] == 'PauseStart') { |
_resumeIsolate(isolateId); |
- } if (json['params']['event']['kind'] == 'PauseExit') { |
+ } |
+ if (json['params']['event']['kind'] == 'PauseExit') { |
_resumeIsolate(isolateId); |
} |
} |