Index: dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart |
index 57e2c457a6b5e0c02e18e997798dd1f37a5af4d8..395f970950757c552d77e0d0ae35d88f1c005f08 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/js_string.dart |
@@ -165,7 +165,7 @@ class JSString extends Interceptor implements String, JSIndexable { |
return stringLastIndexOfUnchecked(this, other, start); |
} |
- bool contains(String other, [int startIndex = 0]) { |
+ bool contains(Pattern other, [int startIndex = 0]) { |
checkNull(other); |
return stringContainsUnchecked(this, other, startIndex); |
} |