| Index: runtime/lib/byte_array.dart
|
| diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
|
| index a08cfbaf799bb9709edfdff19b5a258576e45314..320c0c30beef81241b77eb5ba6d54cd2b9bc17d1 100644
|
| --- a/runtime/lib/byte_array.dart
|
| +++ b/runtime/lib/byte_array.dart
|
| @@ -260,6 +260,13 @@ abstract class _ByteArrayBase {
|
| "Cannot remove from a non-extendable array");
|
| }
|
|
|
| + int indexOf(element, [int start = 0]) {
|
| + for (int i = start; i < length; i++) {
|
| + if (this[i] == element) return i;
|
| + }
|
| + return -1;
|
| + }
|
| +
|
| void insertRange(int start, int length, [initialValue]) {
|
| throw const UnsupportedOperationException(
|
| "Cannot add to a non-extendable array");
|
|
|