Index: runtime/bin/socket_impl.dart |
diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart |
index e4f11dbf25a061c5c967b5f8413336c9b7330b59..b52f3024ea5a0f14b2f6079bd9833a828686b4a1 100644 |
--- a/runtime/bin/socket_impl.dart |
+++ b/runtime/bin/socket_impl.dart |
@@ -411,10 +411,10 @@ class _Socket extends _SocketBase implements Socket { |
// supplied List to a ByteArray if it isn't already. |
List outBuffer; |
int outOffset = offset; |
- if (buffer is ByteArray || buffer is ObjectArray) { |
+ if (buffer is Uint8List || buffer is ObjectArray) { |
outBuffer = buffer; |
} else { |
- outBuffer = new ByteArray(bytes); |
+ outBuffer = new Uint8List(bytes); |
outOffset = 0; |
int j = offset; |
for (int i = 0; i < bytes; i++) { |