summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-iterator-proxies-1.js
blob: c3d041d088747435be99c413c875b151abef54f2 (plain)
1
2
3
4
5
6
7
8
// for-of works on a cross-compartment wrapper of a Set.

var g = newGlobal();
var mw = g.eval("new Set(['a', 'b', 1, 2])");
var log = '';
for (let x of mw)
    log += x;
assertEq(log, "ab12");