Index: sdk/lib/internal/list.dart |
diff --git a/sdk/lib/internal/list.dart b/sdk/lib/internal/list.dart |
index 71e08f80de5d9a483de247ed59f7c823c2fa0a88..6b94c6cbbf9197b3a135d78eedbbe90ae15fa1c0 100644 |
--- a/sdk/lib/internal/list.dart |
+++ b/sdk/lib/internal/list.dart |
@@ -238,9 +238,7 @@ class _ListIndicesIterable extends ListIterable<int> { |
int get length => _backedList.length; |
int elementAt(int index) { |
- if (index < 0 || index >= length) { |
- throw new RangeError.index(index, this); |
- } |
+ RangeError.checkValidIndex(index, this); |
return index; |
} |
} |