Skip to content

Commit 4ca0968

Browse files
kktyaddaleax
authored andcommitted
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: #25323 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Masashi Hirano <[email protected]>
1 parent ca7adca commit 4ca0968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function promisify(original) {
282282
}
283283

284284
// Names to create an object from in case the callback receives multiple
285-
// arguments, e.g. ['stdout', 'stderr'] for child_process.exec.
285+
// arguments, e.g. ['bytesRead', 'buffer'] for fs.read.
286286
const argumentNames = original[kCustomPromisifyArgsSymbol];
287287

288288
function fn(...args) {

0 commit comments

Comments
 (0)