()
| 760 | } |
| 761 | |
| 762 | function needsResolver() { |
| 763 | throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); |
| 764 | } |
| 765 | |
| 766 | function needsNew() { |
| 767 | throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); |