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

Unified Diff: lib/coreimpl/arrays.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/coreimpl/arrays.dart
diff --git a/lib/coreimpl/arrays.dart b/lib/coreimpl/arrays.dart
index 7ed81a96d10bdf4e0018dacc24566f7909cd3e22..2a43a9555588a7647cfff4766e9fa85438cb664f 100644
--- a/lib/coreimpl/arrays.dart
+++ b/lib/coreimpl/arrays.dart
@@ -78,7 +78,7 @@ class Arrays {
static void rangeCheck(List a, int start, int length) {
if (length < 0) {
- throw new IllegalArgumentException("negative length $length");
+ throw new ArgumentError("negative length $length");
}
if (start < 0 ) {
String message = "$start must be greater than or equal to 0";

Powered by Google App Engine
This is Rietveld 408576698