From 41be04b2d1176280ad94a861a875d7e10fb579f4 Mon Sep 17 00:00:00 2001 From: Michael Scovetta Date: Thu, 10 Feb 2022 13:28:04 -0800 Subject: [PATCH] Fixes #41922 (typo / "[stdin") This PR fixes a minor typo in fetchModule's check for `[eval]` and `[stdin]` parent names. --- lib/internal/modules/esm/fetch_module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/fetch_module.js b/lib/internal/modules/esm/fetch_module.js index 288a202ea07372..3a273554b6b7af 100644 --- a/lib/internal/modules/esm/fetch_module.js +++ b/lib/internal/modules/esm/fetch_module.js @@ -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,