Better argument validation for core methods.

This commit is contained in:
Bob Nystrom
2014-01-03 10:47:26 -08:00
parent a89386b4e8
commit 058c2606b0
23 changed files with 58 additions and 87 deletions
+2
View File
@@ -0,0 +1,2 @@
var a = [1, 2, 3]
a[1.5] = 1 // expect runtime error: Subscript must be an integer.