We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
node:
1 parent 8d7d123 commit ab09afbCopy full SHA for ab09afb
lib/internal/modules/helpers.js
@@ -263,13 +263,8 @@ function normalizeReferrerURL(referrerName) {
263
return pathToFileURL(referrerName).href;
264
}
265
266
- if (
267
- StringPrototypeStartsWith(referrerName, 'file://') ||
268
- (
269
- !StringPrototypeStartsWith(referrerName, 'node:') &&
270
- URLCanParse(referrerName)
271
- )
272
- ) {
+ if (StringPrototypeStartsWith(referrerName, 'file://') ||
+ URLCanParse(referrerName)) {
273
return referrerName;
274
275
0 commit comments