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

var a = [1, 2, 3];
a.slow = true;
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,');