Index: lib/coreimpl/arrays.dart |
diff --git a/lib/coreimpl/arrays.dart b/lib/coreimpl/arrays.dart |
index 2a43a9555588a7647cfff4766e9fa85438cb664f..0ff61b75b297013c47e880ce86de2e99eb4fea30 100644 |
--- a/lib/coreimpl/arrays.dart |
+++ b/lib/coreimpl/arrays.dart |
@@ -82,11 +82,11 @@ class Arrays { |
} |
if (start < 0 ) { |
String message = "$start must be greater than or equal to 0"; |
- throw new IndexOutOfRangeException(message); |
+ throw new RangeError(message); |
} |
if (start + length > a.length) { |
String message = "$start + $length must be in the range [0..${a.length})"; |
- throw new IndexOutOfRangeException(message); |
+ throw new RangeError(message); |
} |
} |
} |