Chromium Code Reviews| Index: corelib/src/implementation/arrays.dart |
| =================================================================== |
| --- corelib/src/implementation/arrays.dart (revision 11570) |
| +++ corelib/src/implementation/arrays.dart (working copy) |
| @@ -80,8 +80,8 @@ |
| if (length < 0) { |
| throw new IllegalArgumentException("negative length $length"); |
| } |
| - if (start < 0 || start >= a.length) { |
| - String message = "$start must be in the range [0..${a.length})"; |
| + if (start < 0 ) { |
| + String message = "$start must be greater equal to 0"; |
|
Bill Hesse
2012/09/06 16:19:43
greater than or equal to
srdjan
2012/09/07 13:19:08
Fixed in next CL.
|
| throw new IndexOutOfRangeException(message); |
| } |
| if (start + length > a.length) { |