summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMoshe Atlow <moshe@atlow.co.il>2023-05-05 10:59:25 +0300
committerGitHub <noreply@github.com>2023-05-05 07:59:25 +0000
commitd55b84ba34ff891976bb7535f92b6136a694fe64 (patch)
tree5a7ad901798049f9b18e87aafb5fbb78f4c94a60 /lib
parentaf9b48a2f17b11b66a8b81beeaba3c408b863795 (diff)
downloadnode-new-d55b84ba34ff891976bb7535f92b6136a694fe64.tar.gz
module: block requiring `test/reporters` without scheme
PR-URL: https://github.com/nodejs/node/pull/47831 Fixes: https://github.com/nodejs/node/issues/47828 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/bootstrap/realm.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/bootstrap/realm.js b/lib/internal/bootstrap/realm.js
index 9dc0aee751..8e35213234 100644
--- a/lib/internal/bootstrap/realm.js
+++ b/lib/internal/bootstrap/realm.js
@@ -132,6 +132,7 @@ const legacyWrapperList = new SafeSet([
// Modules that can only be imported via the node: scheme.
const schemelessBlockList = new SafeSet([
'test',
+ 'test/reporters',
]);
// Modules that will only be enabled at run time.
const experimentalModuleList = new SafeSet();