(fn)
| 13009 | module.exports = Promise; |
| 13010 | |
| 13011 | function Promise(fn) { |
| 13012 | if (typeof this !== 'object') { |
| 13013 | throw new TypeError('Promises must be constructed via new'); |
| 13014 | } |
| 13015 | if (typeof fn !== 'function') { |
| 13016 | throw new TypeError('not a function'); |
| 13017 | } |
| 13018 | this._45 = 0; |
| 13019 | this._81 = 0; |
| 13020 | this._65 = null; |
| 13021 | this._54 = null; |
| 13022 | if (fn === noop) return; |
| 13023 | doResolve(fn, this); |
| 13024 | } |
| 13025 | Promise._10 = null; |
| 13026 | Promise._97 = null; |
| 13027 | Promise._61 = noop; |
nothing calls this directly
no test coverage detected