Source code

Revision control

Copy as Markdown

Other Tools

var P = newGlobal().eval(`
(class extends Promise {
static resolve(o) {
return o;
}
});
`);
var alwaysPending = new Promise(() => {});
function neverCalled() {
assertEq(true, false);
}
P.race([alwaysPending]).then(neverCalled, neverCalled);