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>
This commit is contained in:
cjihrig authored and Michaël Zasso committed 2018-11-06 20:15:31 +01:00
1 parent 1f3cb63da3
commit 2d84f45d22
1 file changed
+1 -1
+1 -1
View File
@@ -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
);