| Index: runtime/lib/regexp_patch.dart
|
| diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
|
| index 92acb79d571c080b000355e39e5041fa0adc7fdd..a32163b9dba1d60c5b5f8f2a5109d88b0ad521c6 100644
|
| --- a/runtime/lib/regexp_patch.dart
|
| +++ b/runtime/lib/regexp_patch.dart
|
| @@ -23,7 +23,7 @@ class _JSRegExpMatch implements Match {
|
|
|
| String group(int groupIdx) {
|
| if (groupIdx < 0 || groupIdx > regexp._groupCount) {
|
| - throw new IndexOutOfRangeException(groupIdx);
|
| + throw new RangeError(groupIdx);
|
| }
|
| int startIndex = _start(groupIdx);
|
| int endIndex = _end(groupIdx);
|
|
|