(resolver)
| 4558 | module.exports = Promise; |
| 4559 | |
| 4560 | function Promise(resolver) { |
| 4561 | if (typeof resolver !== 'function') { |
| 4562 | throw new TypeError('resolver must be a function'); |
| 4563 | } |
| 4564 | this.state = PENDING; |
| 4565 | this.queue = []; |
| 4566 | this.outcome = void 0; |
| 4567 | if (resolver !== INTERNAL) { |
| 4568 | safelyResolveThenable(this, resolver); |
| 4569 | } |
| 4570 | } |
| 4571 | |
| 4572 | Promise.prototype["finally"] = function (callback) { |
| 4573 | if (typeof callback !== 'function') { |
nothing calls this directly
no test coverage detected