3 ms·
Those are handled by `util.promisify()` by having the original function define special properties on itself `Symbol('util.promisify.custom')` and `Symbol('custo
by idbehold 9y ago
Those are handled by `util.promisify()` by having the original function define special properties on itself `Symbol('util.promisify.custom')` and `Symbol('customPromisifyArgs')`. But it's not something handled by default (e.g. resolving an array if the callback gets more than 2 arguments passed to it).
- bfred_it 9y agoBut why. If you're gonna take special steps to handle `util.promisify` you might as well just offer a Promised API and skip `util.promisify`