diff options
-rw-r--r-- | lib/internal/modules/esm/loader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index 89f40939e7..60f1e31f94 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -80,7 +80,7 @@ class Loader { if (this._resolve !== defaultResolve) { try { new URL(url); - } catch (e) { + } catch { throw new ERR_INVALID_RETURN_PROPERTY( 'url', 'loader resolve', 'url', url ); |