Skip to content

Commit

Permalink
Update src/js/node/dns.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jarred Sumner <[email protected]>
  • Loading branch information
heimskr and Jarred-Sumner committed Jan 4, 2025
1 parent d20aaf4 commit 7a7c60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/node/dns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function lookup(hostname, options, callback) {
}

function lookupService(address, port, callback) {
if (arguments.length !== 3) {
if (arguments.length < 3) {
throw $ERR_MISSING_ARGS('The "address", "port", and "callback" arguments must be specified');
}

Expand Down

0 comments on commit 7a7c60c

Please sign in to comment.