From 4ca0968918a7ec291ff8358c58641f409cf21dea Mon Sep 17 00:00:00 2001 From: Kazushi Kitaya Date: Thu, 3 Jan 2019 22:12:40 +0900 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Anto Aravinth Reviewed-By: Yuta Hiroto Reviewed-By: Masashi Hirano --- lib/internal/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index 4ead8705777ee8..6929085d469676 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -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) {