Better argument validation for some list methods.

This commit is contained in:
Bob Nystrom
2014-01-02 07:32:00 -08:00
parent a0c32f2e6e
commit a89386b4e8
25 changed files with 133 additions and 65 deletions
-3
View File
@@ -1,6 +1,3 @@
// TODO: What happens if the index isn't an integer?
// TODO: Out of bounds.
// Add to empty list.
var a = []
a.insert(1, 0)