(val, nodeback)
| 6673 | } |
| 6674 | |
| 6675 | function successAdapter(val, nodeback) { |
| 6676 | var promise = this; |
| 6677 | var receiver = promise._boundValue(); |
| 6678 | var ret = val === undefined |
| 6679 | ? tryCatch(nodeback).call(receiver, null) |
| 6680 | : tryCatch(nodeback).call(receiver, null, val); |
| 6681 | if (ret === errorObj) { |
| 6682 | async.throwLater(ret.e); |
| 6683 | } |
| 6684 | } |
| 6685 | function errorAdapter(reason, nodeback) { |
| 6686 | var promise = this; |
| 6687 | if (!reason) { |
nothing calls this directly
no test coverage detected