Properties of the Promise Prototype Object

Promise.prototype.catch

Promise.prototype.constructor

Promise.prototype.finally

Promise.prototype.then

Promise.prototype[@@toStringTag]

Properties of the Promise Instance

Promise Instances 是从Promise原型对象(固有的,%Promise.prototype%)继承属性的普通对象。

使用下表中描述的内部槽创建Promise实例。

Internal SlotTypeDesc
[[PromiseState]]PENDING,FULFILLED,REJECTED控制promise如何响应对其then方法的传入调用。
[[PromiseResult]]ES language valuepromise被resolve或者被reject的值。仅当【【PromiseState】】未待定时才有意义。
[[PromiseFulfillReactions]]List of PromiseReaction Records当/如果承诺从PENDIND状态转换到FULFILLED状态时要处理的记录。
[[PromiseRejectReactions]]List of PromiseReaction Records当/如果承诺从PENDIND状态转换到REJECTED状态时要处理的记录。
[[PromiseIsHandled]]a Boolean指示承诺是否曾经有过履行或拒绝处理程序;用于未处理的拒绝跟踪。