Index: runtime/observatory/lib/service_html.dart |
diff --git a/runtime/observatory/lib/service_html.dart b/runtime/observatory/lib/service_html.dart |
index f4b166efe685c5779777fcfabb035e4fd05eb3e6..ddc42f5d2d32f4f73c3aa648b696f8852c6675bc 100644 |
--- a/runtime/observatory/lib/service_html.dart |
+++ b/runtime/observatory/lib/service_html.dart |
@@ -40,7 +40,7 @@ class _HtmlWebSocket implements CommonWebSocket { |
FileReader fileReader = new FileReader(); |
fileReader.readAsArrayBuffer(data); |
return fileReader.onLoadEnd.first.then((e) { |
- var result = fileReader.result; |
+ Uint8List result = fileReader.result as Uint8List; |
return new ByteData.view( |
result.buffer, result.offsetInBytes, result.length); |
}); |