diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index 04982ca94a9221..9834bce7a90b9c 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -295,15 +295,11 @@ class ESMLoader { * @param {string} originalSpecifier The specified URL path of the module to * be resolved. * @param {string} [parentURL] The URL path of the module's parent. - * @param {ImportAssertions} [importAssertions] Assertions from the import + * @param {ImportAssertions} importAssertions Assertions from the import * statement or expression. * @returns {Promise<{ format: string, url: URL['href'] }>} */ - async resolve( - originalSpecifier, - parentURL, - importAssertions = { __proto__: null }, - ) { + async resolve(originalSpecifier, parentURL, importAssertions) { if (this.#hooks) { return this.#hooks.resolve(originalSpecifier, parentURL, importAssertions); }