(executor)
| 6785 | } |
| 6786 | |
| 6787 | function Promise(executor) { |
| 6788 | this._bitField = 0; |
| 6789 | this._fulfillmentHandler0 = undefined; |
| 6790 | this._rejectionHandler0 = undefined; |
| 6791 | this._promise0 = undefined; |
| 6792 | this._receiver0 = undefined; |
| 6793 | if (executor !== INTERNAL) { |
| 6794 | check(this, executor); |
| 6795 | this._resolveFromExecutor(executor); |
| 6796 | } |
| 6797 | this._promiseCreated(); |
| 6798 | this._fireEvent("promiseCreated", this); |
| 6799 | } |
| 6800 | |
| 6801 | Promise.prototype.toString = function () { |
| 6802 | return "[object Promise]"; |