我想用ES6语法扩展原生JavascriptPromise类,并且能够在子类构造函数中调用一些异步函数。根据异步函数结果,promise必须被拒绝或解决。然而,当then发生了两件奇怪的事情。函数被调用:子类构造函数执行两次“UncaughtTypeError:Promiseresolveorrejectfunctionisnotcallable”抛出错误classMyPromiseextendsPromise{constructor(name){super((resolve,reject)=>{setTimeout(()=>{resolve(1)},1000)})this.name=