Index: runtime/lib/arrays.dart |
=================================================================== |
--- runtime/lib/arrays.dart (revision 424) |
+++ runtime/lib/arrays.dart (working copy) |
@@ -91,7 +91,7 @@ |
if (length < 0) { |
throw new IllegalArgumentException("negative length $length"); |
} |
- if (start < 0 || start > a.length) { |
+ if (start < 0 || start >= a.length) { |
throw new IndexOutOfRangeException(start); |
} |
if (start + length > a.length) { |