| Index: lib/html/dart2js/html_dart2js.dart
|
| diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
|
| index 286137ddce17cdd0437cfa99702c3f6063b53541..6582057f3f1fc5b8971f5780602f20fd26e698f9 100644
|
| --- a/lib/html/dart2js/html_dart2js.dart
|
| +++ b/lib/html/dart2js/html_dart2js.dart
|
| @@ -40862,14 +40862,13 @@ class _Lists {
|
| * [:start + length:].
|
| * Returns an empty list if [length] is 0.
|
| * Throws an [ArgumentError] if [length] is negative.
|
| - * Throws an [IndexOutOfRangeException] if [start] or
|
| - * [:start + length:] are out of range.
|
| + * Throws a [RangeError] if [start] or [:start + length:] are out of range.
|
| */
|
| static List getRange(List a, int start, int length, List accumulator) {
|
| if (length < 0) throw new ArgumentError('length');
|
| - if (start < 0) throw new IndexOutOfRangeException(start);
|
| + if (start < 0) throw new RangeError.value(start);
|
| int end = start + length;
|
| - if (end > a.length) throw new IndexOutOfRangeException(end);
|
| + if (end > a.length) throw new RangeError.value(end);
|
| for (int i = start; i < end; i++) {
|
| accumulator.add(a[i]);
|
| }
|
|
|