| Index: lib/html/templates/html/impl/impl_Element.darttemplate
|
| diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
|
| index dc39ade25aa629891d31a4bae80e12b04b5fa2e0..25f4453103f59886e64942e1f621c8af5a33a965 100644
|
| --- a/lib/html/templates/html/impl/impl_Element.darttemplate
|
| +++ b/lib/html/templates/html/impl/impl_Element.darttemplate
|
| @@ -83,7 +83,7 @@ class _ChildrenElementList implements List {
|
|
|
| void set length(int newLength) {
|
| // TODO(jacobr): remove children when length is reduced.
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| Element add(_ElementImpl value) {
|
| @@ -102,7 +102,7 @@ class _ChildrenElementList implements List {
|
| }
|
|
|
| void sort([Comparator<Element> compare = Comparable.compare]) {
|
| - throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
|
| + throw new StateError('TODO(jacobr): should we impl?');
|
| }
|
|
|
| void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
|
| @@ -215,7 +215,7 @@ class _FrozenElementList implements List {
|
| Element operator [](int index) => _nodeList[index];
|
|
|
| void operator []=(int index, Element value) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void set length(int newLength) {
|
| @@ -223,33 +223,33 @@ class _FrozenElementList implements List {
|
| }
|
|
|
| void add(Element value) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void addLast(Element value) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| Iterator<Element> iterator() => new _FrozenElementListIterator(this);
|
|
|
| void addAll(Collection<Element> collection) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void sort([Comparator<Element> compare = Comparable.compare]) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void removeRange(int start, int rangeLength) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| void insertRange(int start, int rangeLength, [initialValue = null]) {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| List<Element> getRange(int start, int rangeLength) =>
|
| @@ -262,11 +262,11 @@ class _FrozenElementList implements List {
|
| _nodeList.lastIndexOf(element, start);
|
|
|
| void clear() {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| Element removeLast() {
|
| - throw const UnsupportedOperationException('');
|
| + throw new StateError('');
|
| }
|
|
|
| Element last() => _nodeList.last();
|
|
|