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); |
} |