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

Unified Diff: lib/compiler/implementation/lib/string_helper.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: lib/compiler/implementation/lib/string_helper.dart
diff --git a/lib/compiler/implementation/lib/string_helper.dart b/lib/compiler/implementation/lib/string_helper.dart
index 9eb839435d13bad5ba2e22fc42063386d39da6de..bb0d63b1e3ff57b7312b511ddbe6d773b211290a 100644
--- a/lib/compiler/implementation/lib/string_helper.dart
+++ b/lib/compiler/implementation/lib/string_helper.dart
@@ -14,7 +14,7 @@ class StringMatch implements Match {
String group(int group_) {
if (group_ != 0) {
- throw new IndexOutOfRangeException(group_);
+ throw new RangeError(group_);
}
return pattern;
}

Powered by Google App Engine
This is Rietveld 408576698