| Index: lib/html/dart2js/html_dart2js.dart
|
| diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
|
| index ea5e569f4f71cdc3c681ec12e0ca5a20d885f082..d013f6067584a4149dbd34b1fc16140f6ae9f68f 100644
|
| --- a/lib/html/dart2js/html_dart2js.dart
|
| +++ b/lib/html/dart2js/html_dart2js.dart
|
| @@ -10276,7 +10276,7 @@ class _FilteredElementList implements List {
|
| if (newLength >= len) {
|
| return;
|
| } else if (newLength < 0) {
|
| - throw const ArgumentError("Invalid list length");
|
| + throw new ArgumentError("Invalid list length");
|
| }
|
|
|
| removeRange(newLength - 1, len - newLength);
|
| @@ -11662,11 +11662,11 @@ class _FrozenElementListIterator implements Iterator<Element> {
|
|
|
| /**
|
| * Gets the next element in the iteration. Throws a
|
| - * [NoMoreElementsException] if no element is left.
|
| + * [StateError("No more elements")] if no element is left.
|
| */
|
| Element next() {
|
| if (!hasNext) {
|
| - throw const NoMoreElementsException();
|
| + throw new StateError("No more elements");
|
| }
|
|
|
| return _list[_index++];
|
| @@ -40795,7 +40795,7 @@ class _VariableSizeListIterator<T> implements Iterator<T> {
|
|
|
| T next() {
|
| if (!hasNext) {
|
| - throw const NoMoreElementsException();
|
| + throw new StateError("No more elements");
|
| }
|
| return _array[_pos++];
|
| }
|
|
|