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

var a = [1, 2, 3];
var s = '';
for (var x of a)
    for (var y of a)
        s += '' + x + y + ',';
assertEq(s, '11,12,13,21,22,23,31,32,33,');