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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
l.class.name=java.util.ArrayList
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     2
l.length=undefined
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
l.size()=2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
l[0]=foo
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
l[1]=bar
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
--for each begin--
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
foo
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     8
bar
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     9
--for each end--
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
l[0]=foo
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    11
l[1]=a
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    12
l[0.9]=null
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    13
l['blah']=null
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    14
l[size_name]()=2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    15
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    16
java.lang.IndexOutOfBoundsException: Index: Infinity, Size: 2
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    17
java.lang.IndexOutOfBoundsException: Index: -Infinity, Size: 2