diff options
author | cjihrig <cjihrig@gmail.com> | 2018-11-04 10:02:56 -0500 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-12-03 13:33:02 -0500 |
commit | 1491f321447511548dd5362e6b6880d729429f3f (patch) | |
tree | 94e4e0fcc1133cc3bc58665865495739b9b804f7 | |
parent | 0600e753b057853f5dccfc6fa20b2d0a1a14d433 (diff) | |
download | node-new-1491f321447511548dd5362e6b6880d729429f3f.tar.gz |
esm: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
-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 ); |