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

Unified Diff: pkg/fixnum/int64.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: pkg/fixnum/int64.dart
diff --git a/pkg/fixnum/int64.dart b/pkg/fixnum/int64.dart
index f54e8df22882be5553027500c93a507e3a6caaab..c617413c4e7d212b361989ead9e1d990f49cd6c8 100644
--- a/pkg/fixnum/int64.dart
+++ b/pkg/fixnum/int64.dart
@@ -420,7 +420,7 @@ class int64 implements intx {
int64 operator <<(int n) {
if (n < 0) {
- throw new IllegalArgumentException("$n");
+ throw new ArgumentError("$n");
}
n &= 63;
@@ -444,7 +444,7 @@ class int64 implements intx {
int64 operator >>(int n) {
if (n < 0) {
- throw new IllegalArgumentException("$n");
+ throw new ArgumentError("$n");
}
n &= 63;
@@ -485,7 +485,7 @@ class int64 implements intx {
int64 shiftRightUnsigned(int n) {
if (n < 0) {
- throw new IllegalArgumentException("$n");
+ throw new ArgumentError("$n");
}
n &= 63;

Powered by Google App Engine
This is Rietveld 408576698