summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/wrapping-dead-wrapper.js
blob: 406fdaa17258746515d8430bf1d498303d969559 (plain)
1
2
3
4
5
6
7
8
9
// Make sure the wrapper machinery returns a dead wrapper instead of a CCW when
// attempting to wrap a dead wrapper.
var g1 = newGlobal({newCompartment: true});
var g2 = newGlobal({newCompartment: true});
var wrapper = g1.Math;
nukeCCW(wrapper);
assertEq(isSameCompartment(wrapper, this), true);
g2.wrapper = wrapper;
g2.eval("assertEq(isSameCompartment(wrapper, this), true)");