Index: corelib/src/list.dart |
=================================================================== |
--- corelib/src/list.dart (revision 394) |
+++ corelib/src/list.dart (working copy) |
@@ -132,6 +132,7 @@ |
* Returns a sub list copy of this list, from [start] to |
* [:start + length:]. |
* Returns an empty list if [length] is 0. |
+ * Throws an [IllegalArgumentException] if [length] is negative. |
* Throws an [IndexOutOfRangeException] if [start] or |
* [:start + length:] are out of range. |
*/ |
@@ -143,6 +144,7 @@ |
* Throws an [UnsupportedOperationException] if the list is |
* not extendable. |
* If [length] is 0, this method does not do anything. |
+ * Throws an [IllegalArgumentException] if [length] is negative. |
* Throws an [IndexOutOfRangeException] if [start] or |
* [:start + length:] are out of range for [:this:], or if |
* [startFrom] is out of range for [from]. |
@@ -155,6 +157,7 @@ |
* Throws an [UnsupportedOperationException] if the list is |
* not extendable. |
* If [length] is 0, this method does not do anything. |
+ * Throws an [IllegalArgumentException] if [length] is negative. |
* Throws an [IndexOutOfRangeException] if [start] or |
* [:start + length:] are out of range. |
*/ |
@@ -166,6 +169,7 @@ |
* Throws an [UnsupportedOperationException] if the list is |
* not extendable. |
* If [length] is 0, this method does not do anything. |
+ * Throws an [IllegalArgumentException] if [length] is negative. |
* Throws an [IndexOutOfRangeException] if [start] or |
* [:start + length:] are out of range. |
*/ |