Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: add options to util.promisify() #43088

Closed
Prev Previous commit
Next Next commit
squash: add explicit default undefined for optional parameter
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
LiviaMedeiros and aduh95 authored May 18, 2022
commit 9420a34cee79b704dd47fcd9985d6ec12a1f2c8b
2 changes: 1 addition & 1 deletion lib/internal/util.js
Original file line number Diff line number Diff line change
@@ -323,7 +323,7 @@ const kCustomPromisifyArgsSymbol = Symbol('customPromisifyArgs');
let validateFunction;
let validateInteger;

function promisify(original, options) {
function promisify(original, options = undefined) {
// Lazy-load to avoid a circular dependency.
if (validateFunction === undefined || validateInteger === undefined) {
({