diff options
author | LiviaMedeiros <livia@cirno.name> | 2022-05-27 00:04:09 +0800 |
---|---|---|
committer | LiviaMedeiros <livia@cirno.name> | 2022-06-05 15:56:47 +0800 |
commit | 71071f896aa9696b5d36bb3bec1c7217e7420509 (patch) | |
tree | 20e6adea13d08e70b0d290eef3ad4aec9c428d8b /lib/readline.js | |
parent | 45d7ca95cd53bbf4045182d5d3419955185e87a1 (diff) | |
download | node-new-71071f896aa9696b5d36bb3bec1c7217e7420509.tar.gz |
lib: give names to promisified methods
Affected functions: `fs.exists`, `readline.Interface.prototype.question`
PR-URL: https://github.com/nodejs/node/pull/43218
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Diffstat (limited to 'lib/readline.js')
-rw-r--r-- | lib/readline.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline.js b/lib/readline.js index 0957de5850..82afaa285d 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -153,7 +153,7 @@ Interface.prototype.question = function(query, options, cb) { FunctionPrototypeCall(superQuestion, this, query, cb); } }; -Interface.prototype.question[promisify.custom] = function(query, options) { +Interface.prototype.question[promisify.custom] = function question(query, options) { options = typeof options === 'object' && options !== null ? options : {}; if (options.signal && options.signal.aborted) { |