Index: runtime/bin/socket_stream_impl.dart |
diff --git a/runtime/bin/socket_stream_impl.dart b/runtime/bin/socket_stream_impl.dart |
index 45c7e4d0e763aab00932557f986642d494efa6a6..f92754b0053a082c935d6fb7190c2698a133bac0 100644 |
--- a/runtime/bin/socket_stream_impl.dart |
+++ b/runtime/bin/socket_stream_impl.dart |
@@ -18,7 +18,7 @@ class _SocketInputStream implements SocketInputStream { |
bytesToRead = len; |
} |
} |
- ByteArray buffer = new ByteArray(bytesToRead); |
+ List<int> buffer = new Uint8List(bytesToRead); |
int bytesRead = _socket.readList(buffer, 0, bytesToRead); |
if (bytesRead == 0) { |
// On MacOS when reading from a tty Ctrl-D will result in one |
@@ -27,7 +27,7 @@ class _SocketInputStream implements SocketInputStream { |
// which is indicated by a null return value. |
return null; |
} else if (bytesRead < bytesToRead) { |
- ByteArray newBuffer = new ByteArray(bytesRead); |
+ List<int> newBuffer = new Uint8List(bytesRead); |
newBuffer.setRange(0, bytesRead, buffer); |
return newBuffer; |
} else { |