Closed yjbanov closed 7 years ago
Commit https://github.com/dart-lang/vm_service_client/commit/4af8f8e8e5376b3c9383fa0cdbf120b159f7d917#diff-f7a3e81cb53fbd15d3671c716af41a80 introduced a breaking change, which also seems to be an incorrect change. It forces the return type of sendRequest to be Map<String, dynamic>. That's not correct. The returned value could be any valid JSON value, including String, List, Map, etc.
sendRequest
Map<String, dynamic>
String
List
Map
This broke Flutter's devicelab test runner: https://github.com/flutter/flutter/blob/6cdab85d28c59f75e94fd8777f8825458eef6f82/dev/devicelab/lib/framework/runner.dart#L103
/cc @HansMuller @nex3
Commit https://github.com/dart-lang/vm_service_client/commit/4af8f8e8e5376b3c9383fa0cdbf120b159f7d917#diff-f7a3e81cb53fbd15d3671c716af41a80 introduced a breaking change, which also seems to be an incorrect change. It forces the return type of
sendRequest
to beMap<String, dynamic>
. That's not correct. The returned value could be any valid JSON value, includingString
,List
,Map
, etc.This broke Flutter's devicelab test runner: https://github.com/flutter/flutter/blob/6cdab85d28c59f75e94fd8777f8825458eef6f82/dev/devicelab/lib/framework/runner.dart#L103
/cc @HansMuller @nex3