diff --git a/lib/internal/url.js b/lib/internal/url.js index f6cf35323389ba..518c745b41e760 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -458,7 +458,7 @@ Object.defineProperties(URL.prototype, { if (ctx.path.length > 0) { try { return (new URL(ctx.path[0])).origin; - } catch (err) { + } catch { // fall through... do nothing } }