| Index: runtime/lib/array.dart
|
| diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
|
| index f5e8ec33ffe34cd8158c294d7a3511cf839261b6..f90b1c9c048958dbd58ab2dd5e3d4eecf7cf8b67 100644
|
| --- a/runtime/lib/array.dart
|
| +++ b/runtime/lib/array.dart
|
| @@ -29,6 +29,31 @@ class _ObjectArray<E> implements List<E> {
|
| "Cannot remove element of a non-extendable array");
|
| }
|
|
|
| + void remove(Object element) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove element of a non-extendable array");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove element of a non-extendable array");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove element of a non-extendable array");
|
| + }
|
| +
|
| + void removeMatching(bool test(E element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove element of a non-extendable array");
|
| + }
|
| +
|
| + void retainMatching(bool test(E element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove element of a non-extendable array");
|
| + }
|
| +
|
| void setRange(int start, int length, List<E> from, [int startFrom = 0]) {
|
| if (length < 0) {
|
| throw new ArgumentError("negative length $length");
|
| @@ -234,6 +259,31 @@ class _ImmutableArray<E> implements List<E> {
|
| "Cannot modify an immutable array");
|
| }
|
|
|
| + void remove(Object element) {
|
| + throw new UnsupportedError(
|
| + "Cannot modify an immutable array");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot modify an immutable array");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot modify an immutable array");
|
| + }
|
| +
|
| + void removeMatching(bool test(E element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot modify an immutable array");
|
| + }
|
| +
|
| + void retainMatching(bool test(E element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot modify an immutable array");
|
| + }
|
| +
|
| void copyFrom(List src, int srcStart, int dstStart, int count) {
|
| throw new UnsupportedError(
|
| "Cannot modify an immutable array");
|
|
|