Skip to content

Commit d83ab5c

Browse files
committed
module: runtime deprecate exports double slash maps
1 parent ca1cecf commit d83ab5c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/internal/modules/esm/resolve.js

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const {
3333
Stats,
3434
} = require('fs');
3535
const { getOptionValue } = require('internal/options');
36-
const pendingDeprecation = getOptionValue('--pending-deprecation');
3736
// Do not eagerly grab .manifest, it may be in TDZ
3837
const policy = getOptionValue('--experimental-policy') ?
3938
require('internal/process/policy') :
@@ -102,7 +101,6 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
102101
const doubleSlashRegEx = /[/\\][/\\]/;
103102

104103
function emitInvalidSegmentDeprecation(target, request, match, pjsonUrl, base) {
105-
if (!pendingDeprecation) return;
106104
const pjsonPath = fileURLToPath(pjsonUrl);
107105
const double = RegExpPrototypeExec(doubleSlashRegEx, target) !== null;
108106
process.emitWarning(

0 commit comments

Comments
 (0)