test/script/basic/JDK-8016618.js.EXPECTED

Mon, 07 Apr 2014 21:57:33 +0530

author
sundar
date
Mon, 07 Apr 2014 21:57:33 +0530
changeset 830
3cb09c560108
parent 0
b1a7da25b547
child 963
e2497b11a021
permissions
-rw-r--r--

8039387: Nashorn supports indexed access of List elements, but length property is not supported
Reviewed-by: lagergren, jlaskey

aoqi@0 1 x = 33
aoqi@0 2 func.x = 23
aoqi@0 3 func.x = hello
aoqi@0 4 global instanceof fObject? true
aoqi@0 5 x is wriable ? true
aoqi@0 6 x value = 33
aoqi@0 7 global's __proto__ [object Object]
aoqi@0 8 Object.keys on obj
aoqi@0 9 foo
aoqi@0 10 Object.getOwnProperties on obj
aoqi@0 11 foo
aoqi@0 12 bar
aoqi@0 13 forEach 334
aoqi@0 14 forEach 55
aoqi@0 15 forEach 65
aoqi@0 16 reduceRight cur value 65
aoqi@0 17 reduceRight cur value 55
aoqi@0 18 reduceRight cur value 334
aoqi@0 19 reduceRight 454
aoqi@0 20 reduce cur value 334
aoqi@0 21 reduce cur value 55
aoqi@0 22 reduce cur value 65
aoqi@0 23 reduce 454
aoqi@0 24 forEach
aoqi@0 25 334
aoqi@0 26 55
aoqi@0 27 65
aoqi@0 28 Array.isArray(array)? true
aoqi@0 29 TypeError: "bar" is not a writable property of [object Object]
aoqi@0 30 forEach on mirror
aoqi@0 31 334
aoqi@0 32 55
aoqi@0 33 65

mercurial