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

Unified Diff: sdk/lib/internal/iterable.dart

Issue 740653003: Change incorrect limit check in IterableMixinWorkaround.insertAllList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/internal/iterable.dart
diff --git a/sdk/lib/internal/iterable.dart b/sdk/lib/internal/iterable.dart
index 3747989e5d10fc4400e085fbe2dbf0fb63649562..deb76fc70880839f2313f862098dd65cfb3ef255 100644
--- a/sdk/lib/internal/iterable.dart
+++ b/sdk/lib/internal/iterable.dart
@@ -1092,7 +1092,7 @@ class IterableMixinWorkaround<T> {
}
static void insertAllList(List list, int index, Iterable iterable) {
- RangeError.checkValidIndex(index, list);
+ RangeError.checkValueInInterval(index, 0, list.length, "index");
if (iterable is! EfficientLength) {
iterable = iterable.toList(growable: false);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698