nashorn/test/script/basic/JDK-8023026.js.EXPECTED
author martin
Wed, 10 Dec 2014 09:23:00 -0800
changeset 28057 1a47ceecdba5
parent 19469 a5d34b586cea
child 29133 1cd7d8af99ba
permissions -rw-r--r--
8065804: JEP 171: Clarifications/corrections for fence intrinsics Reviewed-by: dholmes, shade, dl, psandoz

iterating on an object of class [I
forEach 0
forEach 1
forEach 2
forEach 3
reduce 0 1
reduce 1 2
reduce 3 3
left sum 6
reduceRight 3 2
reduceRight 5 1
reduceRight 6 0
right sum 6
squared 0,1,4,9
iterating on an object of class java.util.ArrayList
forEach 1
forEach 3
forEach 5
forEach 7
reduce 1 3
reduce 4 5
reduce 9 7
left sum 16
reduceRight 7 5
reduceRight 12 3
reduceRight 15 1
right sum 16
squared 1,9,25,49
iterating on [object Array]
forEach 2
forEach 4
forEach 6
forEach 8
reduce 2 4
reduce 6 6
reduce 12 8
left sum 20
reduceRight 8 6
reduceRight 14 4
reduceRight 18 2
right sum 20
squared 4,16,36,64