From d83ab5c1e870422de0c90e58285654e16c009e7a Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Fri, 2 Sep 2022 18:19:47 +0200 Subject: [PATCH] module: runtime deprecate exports double slash maps --- lib/internal/modules/esm/resolve.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index 720b2c88c26895..9998e65da9b044 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -33,7 +33,6 @@ const { Stats, } = require('fs'); const { getOptionValue } = require('internal/options'); -const pendingDeprecation = getOptionValue('--pending-deprecation'); // Do not eagerly grab .manifest, it may be in TDZ const policy = getOptionValue('--experimental-policy') ? require('internal/process/policy') : @@ -102,7 +101,6 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { const doubleSlashRegEx = /[/\\][/\\]/; function emitInvalidSegmentDeprecation(target, request, match, pjsonUrl, base) { - if (!pendingDeprecation) return; const pjsonPath = fileURLToPath(pjsonUrl); const double = RegExpPrototypeExec(doubleSlashRegEx, target) !== null; process.emitWarning(