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

Unified Diff: lib/compiler/implementation/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: lib/compiler/implementation/lib/math_patch.dart
diff --git a/lib/compiler/implementation/lib/math_patch.dart b/lib/compiler/implementation/lib/math_patch.dart
index 12d505708fc511dfec6b665c5d703f7930cc6361..0d16fc865051d9aaa11690bfcaf683139eb2b027 100644
--- a/lib/compiler/implementation/lib/math_patch.dart
+++ b/lib/compiler/implementation/lib/math_patch.dart
@@ -52,7 +52,7 @@ class _Random implements Random {
const _Random();
int nextInt(int max) {
- if (max < 0) throw new IllegalArgumentException("negative max: $max");
+ if (max < 0) throw new ArgumentError("negative max: $max");
if (max > 0xFFFFFFFF) max = 0xFFFFFFFF;
return JS("int", "(Math.random() * #) >>> 0", max);
}

Powered by Google App Engine
This is Rietveld 408576698