Creates a new Promise.
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
A reference to the prototype.
Make a promise that fulfills when every item in the array fulfills, and rejects if (and when) any item rejects. the array passed to all can be a mixture of promise-like objects and other objects. The fulfillment value is an array (in order) of fulfillment values. The rejection value is the first rejection value.
Make a promise that rejects to obj. For consistency and debugging (eg stack traces), obj should be an instanceof Error
Make a promise that fulfills to obj. Same as Promise.cast(obj) in this situation.