| Index: sdk/lib/io/file_impl.dart
|
| diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
|
| index 61ed003ce45a9c71ba486f28eed05f5a98f62a2f..72d5a6d2c2ed9121d796ba9b8c804c7c21629f03 100644
|
| --- a/sdk/lib/io/file_impl.dart
|
| +++ b/sdk/lib/io/file_impl.dart
|
| @@ -713,11 +713,7 @@ class _RandomAccessFile
|
| }
|
|
|
| static void _checkReadWriteListArguments(int length, int start, int end) {
|
| - if (start < 0) throw new RangeError.value(start);
|
| - if (end < start) throw new RangeError.value(end);
|
| - if (end > length) {
|
| - throw new RangeError.value(end);
|
| - }
|
| + RangeError.checkValidRange(start, end, length);
|
| }
|
|
|
| external static _readInto(int id, List<int> buffer, int start, int end);
|
|
|