We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19ed5c7 commit 5dd31bcCopy full SHA for 5dd31bc
lib/internal/util.js
@@ -260,10 +260,9 @@ function promisify(original) {
260
if (typeof fn !== 'function') {
261
throw new ERR_INVALID_ARG_TYPE('util.promisify.custom', 'Function', fn);
262
}
263
- Object.defineProperty(fn, kCustomPromisifiedSymbol, {
+ return Object.defineProperty(fn, kCustomPromisifiedSymbol, {
264
value: fn, enumerable: false, writable: false, configurable: true
265
});
266
- return fn;
267
268
269
// Names to create an object from in case the callback receives multiple
0 commit comments