summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/wrapper-1.js
blob: 90adb11b084a33b80cefd4eda37ead7bc13b1568 (plain)
1
2
3
4
5
6
7
// for-of works on cross-compartment wrappers of Arrays.

var g = newGlobal();
var s = '';
for (var x of g.Array(1, 1, 2, 3, 5))
    s += x;
assertEq(s, '11235');