Mozilla/mozilla/js/rhino/testsrc/doctests/array.length.doctest
nboyd%atg.com 75306af5a5 Fix Bug 508527 - missing array elements contribute to the length of the array
Patch by Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258121 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-15 21:34:52 +00:00

17 lines
179 B
Plaintext

js> function Array() { throw "don't call this" }
js> [].length
0
js> [1].length
1
js> [,1,2].length
3
js> [1,,2].length
3
js> [1,2,].length
2
js> [,].length
1
js> [1,,].length
2