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

Unified Diff: lib/src/scope.dart

Issue 1670283002: add sendRequest to VMIsolateRef Base URL: git@github.com:yjbanov/vm_service_client.git@master
Patch Set: address comments 2 Created 4 years, 10 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 | « lib/src/isolate.dart ('k') | lib/src/stream_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/scope.dart
diff --git a/lib/src/scope.dart b/lib/src/scope.dart
index 24997c6228331b49ebaa500e3cd8c7ae22070481..3a01ab545c92b167e27fd3998435a3d2a61aa959 100644
--- a/lib/src/scope.dart
+++ b/lib/src/scope.dart
@@ -46,9 +46,9 @@ class Scope {
/// Calls an isolate-scoped RPC named [method] with [params].
///
/// This always adds the `isolateId` parameter to the RPC.
- Future<Map> sendRequest(String method, [Map<String, Object> params]) async {
+ Future<Object> sendRequest(String method, [Map<String, Object> params]) async {
var allParams = {"isolateId": isolateId}..addAll(params ?? {});
- return (await peer.sendRequest(method, allParams)) as Map;
+ return await peer.sendRequest(method, allParams);
}
/// Evaluates [expression] in the context of the object identified by [id].
« no previous file with comments | « lib/src/isolate.dart ('k') | lib/src/stream_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698