| Index: sdk/lib/_internal/lib/regexp_helper.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/lib/regexp_helper.dart (revision 24309)
|
| +++ sdk/lib/_internal/lib/regexp_helper.dart (working copy)
|
| @@ -84,8 +84,10 @@
|
| }
|
|
|
| Match firstMatch(String str) {
|
| - List<String> m =
|
| - JS('=List|Null', r'#.exec(#)', _nativeRegExp, checkString(str));
|
| + List<String> m = JS('JSExtendableArray|Null',
|
| + r'#.exec(#)',
|
| + _nativeRegExp,
|
| + checkString(str));
|
| if (m == null) return null;
|
| return new _MatchImplementation(this, m);
|
| }
|
| @@ -108,7 +110,7 @@
|
| Match _execGlobal(String string, int start) {
|
| Object regexp = _nativeGlobalVersion;
|
| JS("void", "#.lastIndex = #", regexp, start);
|
| - List match = JS("=List|Null", "#.exec(#)", regexp, string);
|
| + List match = JS("JSExtendableArray|Null", "#.exec(#)", regexp, string);
|
| if (match == null) return null;
|
| return new _MatchImplementation(this, match);
|
| }
|
| @@ -116,7 +118,7 @@
|
| Match _execAnchored(String string, int start) {
|
| Object regexp = _nativeAnchoredVersion;
|
| JS("void", "#.lastIndex = #", regexp, start);
|
| - List match = JS("=List|Null", "#.exec(#)", regexp, string);
|
| + List match = JS("JSExtendableArray|Null", "#.exec(#)", regexp, string);
|
| if (match == null) return null;
|
| // If the last capture group participated, the original regexp did not
|
| // match at the start position.
|
|
|