Skip to content

Commit

Permalink
Fixes nodejs#41922 (typo / "[stdin")
Browse files Browse the repository at this point in the history
This PR fixes a minor typo in fetchModule's check for `[eval]` and `[stdin]` parent names.
  • Loading branch information
scovetta authored Feb 10, 2022
1 parent bde184e commit 41be04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/fetch_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function fetchModule(parsed, { parentURL }) {
const parentName = path.basename(parent.pathname);
if (
parentName === '[eval]' ||
parentName === '[stdin'
parentName === '[stdin]'
) parent = 'command-line';
throw new ERR_NETWORK_IMPORT_DISALLOWED(
href,
Expand Down

0 comments on commit 41be04b

Please sign in to comment.