diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index c6abfc9b2b3ecd..435a6f279e9fd1 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -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(