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

Unified Diff: runtime/lib/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/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index df94b9aafc99a54fbd8a1a2d81588becbd6d249e..aa2c29ce6b3cd25e993d78a76f5a4cd09e46e1e6 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -31,7 +31,7 @@ class ObjectArray<E> implements List<E> {
void setRange(int start, int length, List<E> from, [int startFrom = 0]) {
if (length < 0) {
- throw new IllegalArgumentException("negative length $length");
+ throw new ArgumentError("negative length $length");
}
if (from is ObjectArray) {
_copyFromObjectArray(from, startFrom, start, length);

Powered by Google App Engine
This is Rietveld 408576698