| Index: runtime/lib/byte_array.dart
|
| diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
|
| index 6af5f2f4f3954397abb6a73a4e17c9bbf7cdd14c..eed2b269f77de8cb63515465bba57850239dcdc2 100644
|
| --- a/runtime/lib/byte_array.dart
|
| +++ b/runtime/lib/byte_array.dart
|
| @@ -307,6 +307,31 @@ abstract class _ByteArrayBase {
|
| "Cannot remove from a non-extendable array");
|
| }
|
|
|
| + void remove(Object element) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void removeMatching(bool test(int element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void retainMatching(bool test(int element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| int get first {
|
| if (length > 0) return this[0];
|
| throw new StateError("No elements");
|
| @@ -1986,6 +2011,36 @@ class _ByteArrayViewBase extends Collection<int> {
|
| "Cannot remove from a non-extendable array");
|
| }
|
|
|
| + int removeAt(int index) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void remove(Object element) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void removeMatching(bool test(int element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| + void retainMatching(bool test(int element)) {
|
| + throw new UnsupportedError(
|
| + "Cannot remove from a non-extendable array");
|
| + }
|
| +
|
| int get first {
|
| if (length > 0) return this[0];
|
| throw new StateError("No elements");
|
|
|