From 92cfd516d645b0b84108d853b8f5120f2000f418 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 18 Jul 2022 06:06:55 -0700 Subject: [PATCH] esm: remove superfluous argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $defaultResolve() takes two arguments. The third argument is unused. PR-URL: https://github.com/nodejs/node/pull/43884 Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen --- lib/internal/modules/esm/resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index 45dbd43ed9b..e9147aa83de 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -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(