summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-iterator-2.js
blob: 32737a285e85af8698cc1d615493b88e153f1e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
// Nested for-of loops can iterate over a Set.

var map = new Set(['a', 'b']);
var log = '';
for (let x of map) {
    log += x + ':'
    for (let y of map)
        log += y;
    log += ';'
};
assertEq(log, 'a:ab;b:ab;');