| Index: sdk/lib/io/buffer_list.dart
|
| diff --git a/sdk/lib/io/buffer_list.dart b/sdk/lib/io/buffer_list.dart
|
| index 0b3716c7a033c8de2a8a3a0f8f4dffb707d7d1a3..25a4fdd6102ffadf8d692f70e6fc6daf9f788f31 100644
|
| --- a/sdk/lib/io/buffer_list.dart
|
| +++ b/sdk/lib/io/buffer_list.dart
|
| @@ -69,7 +69,8 @@ class _BufferList {
|
| List<int> readBytes([int count]) {
|
| if (count == null) count = length;
|
| List<int> result;
|
| - if (_length == 0 || _length < count) return null;
|
| + if (_length == 0) return new Uint8List(0);
|
| + if (_length < count) return null;
|
| if (_index == 0 && _buffers.first.length == count) {
|
| result = _buffers.first;
|
| _buffers.removeFirst();
|
|
|