mirror of https://github.com/nodejs/node.git
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>pull/24079/head
parent
81b335df80
commit
a64ca7139e
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue