Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
revert change to helper (detecting node: prefix)
  • Loading branch information
JakobJingleheimer committed Jun 11, 2025
commit a31d4084563d61cd0cf76535c1fc4dd5c0ff2198
9 changes: 2 additions & 7 deletions lib/internal/modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,8 @@ function normalizeReferrerURL(referrerName) {
return pathToFileURL(referrerName).href;
}

if (
StringPrototypeStartsWith(referrerName, 'file://') ||
(
!StringPrototypeStartsWith(referrerName, 'node:') &&
URLCanParse(referrerName)
)
) {
if (StringPrototypeStartsWith(referrerName, 'file://') ||
URLCanParse(referrerName)) {
return referrerName;
}

Expand Down