Index: sdk/lib/io/buffer_list.dart |
diff --git a/sdk/lib/io/buffer_list.dart b/sdk/lib/io/buffer_list.dart |
index 97e5e804012b288b45783db5de1c37c57df2405b..0b3716c7a033c8de2a8a3a0f8f4dffb707d7d1a3 100644 |
--- a/sdk/lib/io/buffer_list.dart |
+++ b/sdk/lib/io/buffer_list.dart |
@@ -79,7 +79,7 @@ class _BufferList { |
} else { |
int firstRemaining = _buffers.first.length - _index; |
if (firstRemaining >= count) { |
- result = _buffers.first.getRange(_index, count); |
+ result = _buffers.first.sublist(_index, _index + count); |
_index += count; |
_length -= count; |
if (_index == _buffers.first.length) { |