| 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 ca0121023bfcd4a72404812291d3062c69eb269b..8d7fe061161427a42fc0972fcb84bc92b820a5d2 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
|
| @@ -52,14 +52,15 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
|
| return JS('var', r'#.pop()', this);
|
| }
|
|
|
| - void remove(Object element) {
|
| + bool remove(Object element) {
|
| checkGrowable(this, 'remove');
|
| for (int i = 0; i < this.length; i++) {
|
| if (this[i] == element) {
|
| JS('var', r'#.splice(#, 1)', this, i);
|
| - return;
|
| + return true;
|
| }
|
| }
|
| + return false;
|
| }
|
|
|
| void removeWhere(bool test(E element)) {
|
|
|