Index: sdk/lib/collection/queue.dart |
diff --git a/sdk/lib/collection/queue.dart b/sdk/lib/collection/queue.dart |
index fc568ff1cb9a8df8813645a2ba380b0bd7f646e1..eb92c7128ccc9846a12b4305194235a4a69e9509 100644 |
--- a/sdk/lib/collection/queue.dart |
+++ b/sdk/lib/collection/queue.dart |
@@ -427,9 +427,7 @@ class ListQueue<E> extends IterableBase<E> implements Queue<E> { |
} |
E elementAt(int index) { |
- if (index < 0 || index >= length) { |
- throw new RangeError.index(index, this); |
- } |
+ RangeError.checkValidIndex(index, this); |
return _table[(_head + index) & (_table.length - 1)]; |
} |