url: remove unnecessary object call to kFormat

PR-URL: https://github.com/nodejs/node/pull/45492
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
Yagiz Nizipli authored and Danielle Adams committed 2023-01-03 08:38:50 -05:00
1 parent 009adc7e21
commit 597c7fcbab
1 file changed
+3 -3
+3 -3
View File
@@ -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) {