| Index: runtime/lib/array.dart
|
| ===================================================================
|
| --- runtime/lib/array.dart (revision 1806)
|
| +++ runtime/lib/array.dart (working copy)
|
| @@ -161,6 +161,11 @@
|
| // the inline cache misses.
|
| class ImmutableArray<T> implements List<T> {
|
|
|
| + factory ImmutableArray._uninstantiable() {
|
| + throw const UnsupportedOperationException(
|
| + "ImmutableArray can only be allocated by the VM");
|
| + }
|
| +
|
| T operator [](int index) native "ObjectArray_getIndexed";
|
|
|
| void operator []=(int index, T value) {
|
|
|