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

Unified Diff: runtime/lib/math_patch.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/math_patch.dart
diff --git a/runtime/lib/math_patch.dart b/runtime/lib/math_patch.dart
index ef443e614e16c1b9628f5c80c2644e92828f96b2..93275607a801be23bed396a1f3ed7cab62627839 100644
--- a/runtime/lib/math_patch.dart
+++ b/runtime/lib/math_patch.dart
@@ -47,7 +47,7 @@ class _Random implements Random {
int nextInt(int max) {
if (max <= 0 || max > _POW2_32) {
- throw new IllegalArgumentException("max must be positive and < 2^32:"
+ throw new ArgumentError("max must be positive and < 2^32:"
" $max");
}
if ((max & -max) == max) {

Powered by Google App Engine
This is Rietveld 408576698