| Index: runtime/lib/regexp_patch.dart
|
| diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
|
| index 936a7fee4f9b8f098a762b2089278b659b3ba820..f9e5d6a7ee91a25816af01359a473ec3292d6115 100644
|
| --- a/runtime/lib/regexp_patch.dart
|
| +++ b/runtime/lib/regexp_patch.dart
|
| @@ -26,7 +26,8 @@ class _JSRegExpMatch implements Match {
|
| assert(endIndex == -1);
|
| return null;
|
| }
|
| - return str._substringUnchecked(startIndex, endIndex);
|
| + // TODO(ajohnsen): Use _substringUnchecked when regexp is in core.
|
| + return str.substring(startIndex, endIndex);
|
| }
|
|
|
| String operator [](int groupIdx) {
|
| @@ -98,7 +99,8 @@ patch class JSSyntaxRegExp {
|
| if (match === null) {
|
| return null;
|
| }
|
| - return str._substringUnchecked(match[0], match[1]);
|
| + // TODO(ajohnsen): Use _substringUnchecked when regexp is in core.
|
| + return str.substring(match[0], match[1]);
|
| }
|
|
|
| /* patch */ String get pattern native "JSSyntaxRegExp_getPattern";
|
|
|