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

Unified Diff: runtime/lib/byte_array.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/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 59b878cfc9ccbcbc952fb5fd575dbfd4d85e4306..0897917bb0d6396229e1897b9c53fe84e5209ca7 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -323,7 +323,7 @@ int _requireInteger(object) {
if (object is int) {
return object;
}
- throw new IllegalArgumentException("$object is not an integer");
+ throw new ArgumentError("$object is not an integer");
}
@@ -334,7 +334,7 @@ int _requireIntegerOrNull(object, value) {
if (object === null) {
return _requireInteger(value);
}
- throw new IllegalArgumentException("$object is not an integer or null");
+ throw new ArgumentError("$object is not an integer or null");
}

Powered by Google App Engine
This is Rietveld 408576698