| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index e5476d45799af63c012c1651b46f318d88efaabe..1dfb8306bfccea66e4d468d1bb58d288f596c0ae 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -345,7 +345,7 @@ class ListIterator<T> implements Iterator<T> {
|
| ListIterator(List<T> this.list) : i = 0;
|
| bool get hasNext => i < JS('int', r'#.length', list);
|
| T next() {
|
| - if (!hasNext) throw new NoMoreElementsException();
|
| + if (!hasNext) throw new StateError("No more elements");
|
| var value = JS('Object', r'#[#]', list, i);
|
| i += 1;
|
| return value;
|
|
|