Skip to content
Permalink
Browse files
esm: remove superfluous argument
$defaultResolve() takes two arguments. The third argument is unused.

PR-URL: #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 danielleadams committed Jul 26, 2022
1 parent bb6787c commit e89e0b470b110ca6363ccf620e7b601aff69bb43
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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(

0 comments on commit e89e0b4

Please sign in to comment.