| Index: lib/html/templates/html/impl/impl_NodeList.darttemplate
|
| diff --git a/lib/html/templates/html/impl/impl_NodeList.darttemplate b/lib/html/templates/html/impl/impl_NodeList.darttemplate
|
| index 7a42e98ceb4075ec6cb723ebbeb5032a6a2d7148..970296a048ed3431f4f36d0da558ef8e8c44b84c 100644
|
| --- a/lib/html/templates/html/impl/impl_NodeList.darttemplate
|
| +++ b/lib/html/templates/html/impl/impl_NodeList.darttemplate
|
| @@ -146,7 +146,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| // From List<Node>:
|
|
|
| void sort([Comparator<Node> compare = Comparable.compare]) {
|
| - throw new UnsupportedOperationException("Cannot sort immutable List.");
|
| + throw new UnsupportedError("Cannot sort immutable List.");
|
| }
|
|
|
| int indexOf(Node element, [int start = 0]) =>
|
| @@ -160,13 +160,13 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
|
|
| // FIXME: implement thesee.
|
| void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
|
| - throw new UnsupportedOperationException("Cannot setRange on immutable List.");
|
| + throw new UnsupportedError("Cannot setRange on immutable List.");
|
| }
|
| void removeRange(int start, int rangeLength) {
|
| - throw new UnsupportedOperationException("Cannot removeRange on immutable List.");
|
| + throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| }
|
| void insertRange(int start, int rangeLength, [Node initialValue]) {
|
| - throw new UnsupportedOperationException("Cannot insertRange on immutable List.");
|
| + throw new UnsupportedError("Cannot insertRange on immutable List.");
|
| }
|
| List<Node> getRange(int start, int rangeLength) =>
|
| new _NodeListWrapper(_Lists.getRange(this, start, rangeLength, <Node>[]));
|
|
|