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: nodejs/node#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 guangwong committed Oct 10, 2022
1 parent bbc79c1 commit 92cfd51
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 92cfd51

Please sign in to comment.