Source code

Revision control

Copy as Markdown

Other Tools

ignoreUnhandledRejections();
const global = newGlobal();
const OtherPromise = global.Promise;
class SubPromise extends OtherPromise {}
assertEq(true, new SubPromise(()=>{}) instanceof OtherPromise);
assertEq(true, SubPromise.resolve({}) instanceof OtherPromise);
assertEq(true, SubPromise.reject({}) instanceof OtherPromise);
assertEq(true, SubPromise.resolve({}).then(()=>{}, ()=>{}) instanceof OtherPromise);