author | sogoel |
Thu, 26 Jun 2014 15:30:21 -0700 | |
changeset 25293 | 816d874c1261 |
parent 23770 | cdedd86695a0 |
child 27976 | ef54dfb4fc7d |
permissions | -rw-r--r-- |
16147 | 1 |
l.class.name=java.util.ArrayList |
23770
cdedd86695a0
8039387: Nashorn supports indexed access of List elements, but length property is not supported
sundar
parents:
16147
diff
changeset
|
2 |
l.length=2 |
16147 | 3 |
l.size()=2 |
4 |
l[0]=foo |
|
5 |
l[1]=bar |
|
6 |
--for each begin-- |
|
7 |
foo |
|
8 |
bar |
|
9 |
--for each end-- |
|
10 |
l[0]=foo |
|
11 |
l[1]=a |
|
12 |
l[0.9]=null |
|
13 |
l['blah']=null |
|
14 |
l[size_name]()=2 |
|
15 |
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 |
|
16 |
java.lang.IndexOutOfBoundsException: Index: Infinity, Size: 2 |
|
17 |
java.lang.IndexOutOfBoundsException: Index: -Infinity, Size: 2 |