Chromium Code Reviews| 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..9f81ce3cecfac871aa3c9884cf9985dbad940443 100644 |
| --- a/lib/html/dart2js/html_dart2js.dart |
| +++ b/lib/html/dart2js/html_dart2js.dart |
| @@ -40862,14 +40862,14 @@ 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 |
| + * Throws an [RangeError] if [start] or |
|
floitsch
2012/11/01 12:11:39
Throws "a" ...
You probably just need to run the
Lasse Reichstein Nielsen
2012/11/01 13:39:09
Will do, or see if I forgot the template too.
|
| * [: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]); |
| } |