summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/promise/bug1406463.js
blob: 4873da395f0a653dd1005a9e57ed4ea9a87c07e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error:dead object

var P = newGlobal({newCompartment: true}).eval(`
(class extends Promise {
    static resolve(o) {
        return o;
    }
});
`);

Promise.all.call(P, [{
    then(r) {
        nukeAllCCWs();
        r();
    }
}]);