Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index 3b502a2f32aee80a8670f375b6dd0c956a0d909c..bc91a3272cf623e0f2f1e875e9720e5860e99fac 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -45,7 +45,7 @@ class _SocketBase extends NativeFieldWrapperClass1 { |
static const int _LAST_COMMAND = _SHUTDOWN_WRITE_COMMAND; |
_SocketBase () { |
- _handlerMap = new List(_LAST_EVENT + 1); |
+ _handlerMap = new List.fixedLength(_LAST_EVENT + 1); |
_handlerMask = 0; |
_canActivateHandlers = true; |
_closed = true; |
@@ -339,7 +339,7 @@ class _Socket extends _SocketBase implements Socket { |
factory _Socket(String host, int port) { |
Socket socket = new _Socket._internal(); |
_ensureSocketService(); |
- List request = new List(2); |
+ List request = new List.fixedLength(2); |
request[0] = HOST_NAME_LOOKUP; |
request[1] = host; |
_socketService.call(request).then((response) { |