Skip to content

Commit ab09afb

Browse files
revert change to helper (detecting node: prefix)
1 parent 8d7d123 commit ab09afb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/internal/modules/helpers.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,8 @@ function normalizeReferrerURL(referrerName) {
263263
return pathToFileURL(referrerName).href;
264264
}
265265

266-
if (
267-
StringPrototypeStartsWith(referrerName, 'file://') ||
268-
(
269-
!StringPrototypeStartsWith(referrerName, 'node:') &&
270-
URLCanParse(referrerName)
271-
)
272-
) {
266+
if (StringPrototypeStartsWith(referrerName, 'file://') ||
267+
URLCanParse(referrerName)) {
273268
return referrerName;
274269
}
275270

0 commit comments

Comments
 (0)