From e417c6eac45a829a97e0154bfd80494a49f71ceb Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 16 Nov 2022 16:34:41 -0500 Subject: [PATCH] url: remove unnecessary object call to kFormat --- lib/internal/url.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 1f84e05e1d6142..40b25f6890b5db 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -748,13 +748,13 @@ class URL { toString() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } get href() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } set href(input) { @@ -1011,7 +1011,7 @@ class URL { toJSON() { if (!isURLThis(this)) throw new ERR_INVALID_THIS('URL'); - return this[kFormat]({}); + return this[kFormat](); } static createObjectURL(obj) {