| Index: lib/compiler/implementation/lib/interceptors.dart
|
| diff --git a/lib/compiler/implementation/lib/interceptors.dart b/lib/compiler/implementation/lib/interceptors.dart
|
| index 25e5501d3e66c66d78c51ae1dab48dcbccafce02..a53ee7d08e8c0f4944b67b9814d81859240b0608 100644
|
| --- a/lib/compiler/implementation/lib/interceptors.dart
|
| +++ b/lib/compiler/implementation/lib/interceptors.dart
|
| @@ -16,6 +16,19 @@ add$1(var receiver, var value) {
|
| return UNINTERCEPTED(receiver.add(value));
|
| }
|
|
|
| +removeAt$1(var receiver, var index) {
|
| + if (isJsArray(receiver)) {
|
| + if (index is !int) throw new IllegalArgumentException(index);
|
| + if (index < 0 || index >= receiver.length) {
|
| + throw new IndexOutOfRangeException(index);
|
| + }
|
| + checkGrowable(receiver, 'removeAt');
|
| + return JS("Object", @'#.splice(#, 1)[0]', receiver, index);
|
| +
|
| + }
|
| + return UNINTERCEPTED(receiver.removeAt(index));
|
| +}
|
| +
|
| removeLast(var receiver) {
|
| if (isJsArray(receiver)) {
|
| checkGrowable(receiver, 'removeLast');
|
|
|