blob: 545d80b6ac0aa0397482381b2c39d78ee83c69f0 (
plain)
1
2
3
4
5
6
7
8
|
// for-of works on a cross-compartment wrapper of a Map.
var g = newGlobal();
var mw = g.eval("new Map([['a', 1], ['b', 2]])");
var log = '';
for (let [k, v] of mw)
log += k + v;
assertEq(log, "a1b2");
|