author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 34979 | nashorn/test/script/basic/list.js.EXPECTED@03b189baa361 |
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 |
|
34979
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
12 |
l[0.9]=undefined |
27976
ef54dfb4fc7d
8066669: dust.js performance regression caused by primitive field conversion
hannesw
parents:
23770
diff
changeset
|
13 |
l['blah']=undefined |
16147 | 14 |
l[size_name]()=2 |
34979
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
15 |
l[2]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
16 |
l[-1]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
17 |
l[2.1]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
18 |
l[-1.1]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
19 |
l[Infinity]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
20 |
l[-Infinity]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
21 |
l[NaN]=undefined |
03b189baa361
8144919: Implement missing member handler for BeansLinker
attila
parents:
27976
diff
changeset
|
22 |
l[0]=foo |