Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Unified Diff: runtime/lib/regexp_patch.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698