| Index: sdk/lib/_internal/compiler/implementation/lib/js_string.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
|
| index 610f7f812d97450f8f0d56f4e3d2d2b2459ed87f..92d7c673a2a62bc8da0b152e3afa0a81c59d5bdb 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
|
| @@ -222,6 +222,9 @@ class JSString extends Interceptor implements String, JSIndexable {
|
|
|
| bool contains(Pattern other, [int startIndex = 0]) {
|
| checkNull(other);
|
| + if (startIndex < 0 || startIndex > this.length) {
|
| + throw new RangeError.range(startIndex, 0, this.length);
|
| + }
|
| return stringContainsUnchecked(this, other, startIndex);
|
| }
|
|
|
|
|