(fun)
| 7845 | } |
| 7846 | |
| 7847 | function callbackify(fun) { |
| 7848 | return function (...args) { |
| 7849 | var cb = args.pop(); |
| 7850 | var promise = fun.apply(this, args); |
| 7851 | if (typeof cb === 'function') { |
| 7852 | promisedCallback(promise, cb); |
| 7853 | } |
| 7854 | return promise; |
| 7855 | }; |
| 7856 | } |
| 7857 | |
| 7858 | // Promise finally util similar to Q.finally |
| 7859 | function fin(promise, finalPromiseFactory) { |
no test coverage detected
searching dependent graphs…