Index: sdk/lib/io/secure_socket.dart |
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
index 727f0198f4c522f71019f6eb409eb2d26733738e..41fdf59a81d0a1c8e77f8432e5a925d4c7978167 100644 |
--- a/sdk/lib/io/secure_socket.dart |
+++ b/sdk/lib/io/secure_socket.dart |
@@ -433,7 +433,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent> |
} |
} |
List<int> result = (toRead == 0) ? null : |
- buffer.data.getRange(buffer.start, toRead); |
+ buffer.data.sublist(buffer.start, buffer.start + toRead); |
buffer.advanceStart(toRead); |
// Set up a read event if the filter still has data. |