Skip to content

Commit bbba42f

Browse files
anonrigruyadorno
authored andcommitted
url: remove unnecessary object call to kFormat
PR-URL: #45492 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent 1812a89 commit bbba42f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/internal/url.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,13 +748,13 @@ class URL{
748748
toString(){
749749
if(!isURLThis(this))
750750
thrownewERR_INVALID_THIS('URL');
751-
returnthis[kFormat]({});
751+
returnthis[kFormat]();
752752
}
753753

754754
gethref(){
755755
if(!isURLThis(this))
756756
thrownewERR_INVALID_THIS('URL');
757-
returnthis[kFormat]({});
757+
returnthis[kFormat]();
758758
}
759759

760760
sethref(input){
@@ -1011,7 +1011,7 @@ class URL{
10111011
toJSON(){
10121012
if(!isURLThis(this))
10131013
thrownewERR_INVALID_THIS('URL');
1014-
returnthis[kFormat]({});
1014+
returnthis[kFormat]();
10151015
}
10161016

10171017
staticcreateObjectURL(obj){

0 commit comments

Comments
(0)