(reason, nodeback)
| 6683 | } |
| 6684 | } |
| 6685 | function errorAdapter(reason, nodeback) { |
| 6686 | var promise = this; |
| 6687 | if (!reason) { |
| 6688 | var newReason = new Error(reason + ""); |
| 6689 | newReason.cause = reason; |
| 6690 | reason = newReason; |
| 6691 | } |
| 6692 | var ret = tryCatch(nodeback).call(promise._boundValue(), reason); |
| 6693 | if (ret === errorObj) { |
| 6694 | async.throwLater(ret.e); |
| 6695 | } |
| 6696 | } |
| 6697 | |
| 6698 | Promise.prototype.asCallback = Promise.prototype.nodeify = function (nodeback, |
| 6699 | options) { |
nothing calls this directly
no test coverage detected