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 <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
Trott authored and targos committed Jul 31, 2022
1 parent 00517c8 commit c16fe27
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 @@ -1264,7 +1264,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 c16fe27

Please sign in to comment.