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

Unified Diff: runtime/bin/socket_patch.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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 | « runtime/bin/process_patch.dart ('k') | runtime/lib/array.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 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) {
« no previous file with comments | « runtime/bin/process_patch.dart ('k') | runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698