| Index: runtime/lib/growable_array.dart
|
| diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
|
| index 455f7657e0e44fc4dfc840150fd7c764f438899f..a5724759fd936775089067be659783b0f789282f 100644
|
| --- a/runtime/lib/growable_array.dart
|
| +++ b/runtime/lib/growable_array.dart
|
| @@ -25,7 +25,9 @@ class _GrowableList<T> extends ListBase<T> {
|
| T removeAt(int index) {
|
| var result = this[index];
|
| int newLength = this.length - 1;
|
| - Lists.copy(this, index + 1, this, index, newLength - index);
|
| + if (index < newLength) {
|
| + Lists.copy(this, index + 1, this, index, newLength - index);
|
| + }
|
| this.length = newLength;
|
| return result;
|
| }
|
|
|