| Index: lib/compiler/implementation/lib/interceptors.dart
|
| diff --git a/lib/compiler/implementation/lib/interceptors.dart b/lib/compiler/implementation/lib/interceptors.dart
|
| index ffbd1d9d76b99e85cf27a00f26399fdf6debc4cf..753724873afbbfa42d969197db4ce6d09ee7f387 100644
|
| --- a/lib/compiler/implementation/lib/interceptors.dart
|
| +++ b/lib/compiler/implementation/lib/interceptors.dart
|
| @@ -508,10 +508,15 @@ concat(receiver, other) {
|
| }
|
|
|
| contains$1(receiver, other) {
|
| - if (receiver is !String) {
|
| - return UNINTERCEPTED(receiver.contains(other));
|
| + if (receiver is String) {
|
| + return contains$2(receiver, other, 0);
|
| + } else if (isJsArray(receiver)) {
|
| + for (int i = 0; i < receiver.length; i++) {
|
| + if (other == receiver[i]) return true;
|
| + }
|
| + return false;
|
| }
|
| - return contains$2(receiver, other, 0);
|
| + return UNINTERCEPTED(receiver.contains(other));
|
| }
|
|
|
| contains$2(receiver, other, startIndex) {
|
|
|