| Index: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| index 891e202b9caba4687ec91490d2caaf9a48b1f4e1..eed89a744c9eb2a2ddca385cdf4f1542e2ad64c0 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| @@ -155,6 +155,7 @@ class JSArray<E> implements List<E> {
|
| }
|
|
|
| void insertRange(int start, int length, [E initialValue]) {
|
| + checkGrowable(this, 'insertRange');
|
| return listInsertRange(this, start, length, initialValue);
|
| }
|
|
|
| @@ -271,9 +272,9 @@ class JSArray<E> implements List<E> {
|
| int get length => JS('int', r'#.length', this);
|
|
|
| void set length(int newLength) {
|
| + checkGrowable(this, 'set length');
|
| if (newLength is !int) throw new ArgumentError(newLength);
|
| if (newLength < 0) throw new RangeError.value(newLength);
|
| - checkGrowable(this, 'set length');
|
| JS('void', r'#.length = #', this, newLength);
|
| }
|
|
|
|
|