Chromium Code Reviews| Index: compiler/lib/implementation/arrays.dart |
| =================================================================== |
| --- compiler/lib/implementation/arrays.dart (revision 424) |
| +++ compiler/lib/implementation/arrays.dart (working copy) |
| @@ -68,7 +68,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) { |