(fn)
| 12849 | module.exports = Promise; |
| 12850 | |
| 12851 | function Promise(fn) { |
| 12852 | if (typeof this !== 'object') { |
| 12853 | throw new TypeError('Promises must be constructed via new'); |
| 12854 | } |
| 12855 | if (typeof fn !== 'function') { |
| 12856 | throw new TypeError('not a function'); |
| 12857 | } |
| 12858 | this._45 = 0; |
| 12859 | this._81 = 0; |
| 12860 | this._65 = null; |
| 12861 | this._54 = null; |
| 12862 | if (fn === noop) return; |
| 12863 | doResolve(fn, this); |
| 12864 | } |
| 12865 | Promise._10 = null; |
| 12866 | Promise._97 = null; |
| 12867 | Promise._61 = noop; |
nothing calls this directly
no test coverage detected