mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
009adc7e21
commit
597c7fcbab
1 file changed
+3
-3
+3
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user