| Index: tools/dom/templates/immutable_list_mixin.darttemplate
|
| diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
|
| index bf2bf4cc8e7e2708e9928adef5a974f1da0f46d6..db175351c38a0b2fec48f02a9aa468f6be9f40dc 100644
|
| --- a/tools/dom/templates/immutable_list_mixin.darttemplate
|
| +++ b/tools/dom/templates/immutable_list_mixin.darttemplate
|
| @@ -95,7 +95,7 @@ $if DEFINE_CLEAR
|
| throw new UnsupportedError("Cannot clear immutable List.");
|
| }
|
| $else
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
| $endif
|
|
|
| void sort([int compare($E a, $E b)]) {
|
| @@ -131,11 +131,31 @@ $endif
|
| $E max([int compare($E a, $E b)]) => Collections.max(this, compare);
|
|
|
| $E removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| $E removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test($E element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test($E element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<$E> from, [int startFrom]) {
|
|
|