Skip to content

Commit

Permalink
esm: remove superfluous argument
Browse files Browse the repository at this point in the history
$defaultResolve() takes two arguments. The third argument is unused.

PR-URL: #43884
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
Trott authored and danielleadams committed Jul 26, 2022
1 parent bb6787c commit e89e0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ if (policy) {
specifier,
context
) {
const ret = await $defaultResolve(specifier, context, $defaultResolve);
const ret = await $defaultResolve(specifier, context);
// This is a preflight check to avoid data exfiltration by query params etc.
policy.manifest.mightAllow(ret.url, () =>
new ERR_MANIFEST_DEPENDENCY_MISSING(
Expand Down

0 comments on commit e89e0b4

Please sign in to comment.