nashorn/test/script/basic/list.js.EXPECTED
author attila
Fri, 26 Apr 2013 09:20:37 +0200
changeset 17249 a2014831ae7a
parent 16147 e63b63819133
child 23770 cdedd86695a0
permissions -rw-r--r--
8013325: function named 'arguments' should set DEFINES_ARGUMENTS flag in its parent, not itself Reviewed-by: hannesw, sundar

l.class.name=java.util.ArrayList
l.length=undefined
l.size()=2
l[0]=foo
l[1]=bar
--for each begin--
foo
bar
--for each end--
l[0]=foo
l[1]=a
l[0.9]=null
l['blah']=null
l[size_name]()=2
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
java.lang.IndexOutOfBoundsException: Index: Infinity, Size: 2
java.lang.IndexOutOfBoundsException: Index: -Infinity, Size: 2