Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: runtime/bin/socket_patch.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/array_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 788640863a25aa6eb4e013630569f055a832629d..7a768a2d170ff3d7bb7604fb6b9bfffa88151e37 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -132,7 +132,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;
@@ -422,7 +422,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) {
« no previous file with comments | « no previous file | runtime/lib/array_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698