Skip to content

Commit eb2f821

Browse files
scovettabengl
authored andcommitted
esm: fix typo in fetch_module
This PR fixes a minor typo in fetchModule's check for `[eval]` and `[stdin]` parent names. PR-URL: #41924 Fixes: #41922 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 4883904 commit eb2f821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/fetch_module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function fetchModule(parsed, { parentURL }) {
267267
const parentName = path.basename(parent.pathname);
268268
if (
269269
parentName === '[eval]' ||
270-
parentName === '[stdin'
270+
parentName === '[stdin]'
271271
) parent = 'command-line';
272272
throw new ERR_NETWORK_IMPORT_DISALLOWED(
273273
href,

0 commit comments

Comments
 (0)