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

Unified Diff: corelib/src/implementation/arrays.dart

Issue 10905010: Some code cleanups in arrays, fix rangeCheck (issue 2899). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | runtime/lib/array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698