summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/array-jit.js
blob: 3f139cc2bd273f311292208a4a65ae4c6be7be69 (plain)
1
2
3
4
5
6
var arr = [1, 2, 3];
var y = 0;
for (var i = 0; i < 10; i++)
    for (var x of arr)
        y += x;
assertEq(y, 60);