mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
util: update comment in util.promisify
child_process.exec has Symbol('util.promisify.custom') in its keys
and no longer has Symbol('customPromisifyArgs') in its keys, but it was
still used as an example of funtions with
Symbol('customPromisifyArgs').
PR-URL: https://github.com/nodejs/node/pull/25323
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
This commit is contained in:
1 parent
ca7adcafda
commit
4ca0968918
1 file changed
+1
-1
@@ -282,7 +282,7 @@ function promisify(original) {
|
||||
}
|
||||
|
||||
// Names to create an object from in case the callback receives multiple
|
||||
// arguments, e.g. ['stdout', 'stderr'] for child_process.exec.
|
||||
// arguments, e.g. ['bytesRead', 'buffer'] for fs.read.
|
||||
const argumentNames = original[kCustomPromisifyArgsSymbol];
|
||||
|
||||
function fn(...args) {
|
||||
|
||||
Reference in new issue
Block a user