Chromium Code Reviews| 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 { |
|
nweiz
2016/02/16 22:03:20
Nit: long line
yjbanov
2016/02/16 22:31:49
Done.
|
| 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]. |