mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
esm: remove superfluous argument
$defaultResolve() takes two arguments. The third argument is unused. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
bb6787cb57
commit
e89e0b470b
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user