From ca4fd89eafa5b33a27c1660a7571fea3bf20e214 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 4 Nov 2018 10:02:56 -0500 Subject: [PATCH] esm: remove unused catch bindings PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts Reviewed-By: Wyatt Preul --- lib/internal/modules/esm/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index 89f40939e7a4f3..60f1e31f94e86e 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 );