(self, executor)
| 6776 | var errorObj = util.errorObj; |
| 6777 | var tryCatch = util.tryCatch; |
| 6778 | function check(self, executor) { |
| 6779 | if (typeof executor !== "function") { |
| 6780 | throw new TypeError("expecting a function but got " + util.classString(executor)); |
| 6781 | } |
| 6782 | if (self.constructor !== Promise) { |
| 6783 | throw new TypeError("the promise constructor cannot be invoked directly\u000a\u000a See http://goo.gl/MqrFmX\u000a"); |
| 6784 | } |
| 6785 | } |
| 6786 | |
| 6787 | function Promise(executor) { |
| 6788 | this._bitField = 0; |
no outgoing calls
no test coverage detected