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

Unified Diff: runtime/lib/integers.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index 14ed12301620e6b1229ed343d5c6c1193ed97753..85a4e4609711ac676d1d1811b7a41db8e87c4626 100644
--- a/runtime/lib/integers.dart
+++ b/runtime/lib/integers.dart
@@ -158,7 +158,7 @@ class _IntegerImplementation {
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", "y", "z"];
if (radix < 2 || radix > 36) {
- throw new IllegalArgumentException(radix);
+ throw new ArgumentError(radix);
}
final bool isNegative = this < 0;
var value = isNegative ? -this : this;

Powered by Google App Engine
This is Rietveld 408576698