summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/promise/bug1347984.js
blob: 10dbae25b2cc7d4d350a69c8691393b8f4f58795 (plain)
1
2
3
4
5
6
// |jit-test| error:dead object
var g = newGlobal({newCompartment: true});
var p = new Promise(() => {});
g.Promise.prototype.then.call(p, () => void 0);
g.eval("nukeAllCCWs()");
resolvePromise(p, 9);