summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/arrays-3.js
blob: b0dedbcc107005a7ed88e5b1e1bee51695dd37dd (plain)
1
2
3
4
5
6
7
8
9
// Two for-of loops on the same array get distinct iterators.

var a = [1, 2, 3];
var s = '';
for (var x of a)
    s += x;
for (var y of a)
    s += y;
assertEq(s, '123123');