Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fa3e0c8

Browse filesBrowse files
aduh95RafaelGSS
authored andcommitted
esm: mark importAssertions as required
We already always specify a value, and failing to do so would likely be a bug. PR-URL: #46164 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent e1c56ec commit fa3e0c8
Copy full SHA for fa3e0c8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/modules/esm/loader.js‎

Copy file name to clipboardExpand all lines: lib/internal/modules/esm/loader.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,14 +777,14 @@ class ESMLoader {
777777
* @param {string} originalSpecifier The specified URL path of the module to
778778
* be resolved.
779779
* @param {string} [parentURL] The URL path of the module's parent.
780-
* @param {ImportAssertions} [importAssertions] Assertions from the import
780+
* @param {ImportAssertions} importAssertions Assertions from the import
781781
* statement or expression.
782782
* @returns {{ format: string, url: URL['href'] }}
783783
*/
784784
async resolve(
785785
originalSpecifier,
786786
parentURL,
787-
importAssertions = { __proto__: null },
787+
importAssertions,
788788
) {
789789
const isMain = parentURL === undefined;
790790

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.