blob: 686fdc6c110a24ccee91e1e3620c4c76bfd70e36 (
plain)
1
2
3
4
5
6
7
8
9
10
|
function f() {
var g = newGlobal({sameCompartmentAs: this});
g.evaluate(`function f() {}`);
var boundF = g.f.bind(null);
for (var i = 0; i < 50; i++) {
var obj = new boundF();
assertEq(objectGlobal(obj), g);
}
}
f();
|