nashorn/test/script/basic/list.js.EXPECTED
author jlaskey
Fri, 21 Dec 2012 16:36:24 -0400
changeset 16147 e63b63819133
child 23770 cdedd86695a0
permissions -rw-r--r--
8005403: Open-source Nashorn Reviewed-by: attila, hannesw, lagergren, sundar Contributed-by: james.laskey@oracle.com, akhil.arora@oracle.com, andreas.woess@jku.at, attila.szegedi@oracle.com, hannes.wallnoefer@oracle.com, henry.jen@oracle.com, marcus.lagergren@oracle.com, pavel.semenov@oracle.com, pavel.stepanov@oracle.com, petr.hejl@oracle.com, petr.pisl@oracle.com, sundararajan.athijegannathan@oracle.com

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