GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — url: remove unnecessary object call to kFormat · nodejs/node@bbba42f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • url.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/url.js‎

Copy file name to clipboardExpand all lines: lib/internal/url.js
+3-3Lines 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
throw new ERR_INVALID_THIS('URL');
751-
return this[kFormat]({});
751+
return this[kFormat]();
752752
}
753753

754754
get href() {
755755
if (!isURLThis(this))
756756
throw new ERR_INVALID_THIS('URL');
757-
return this[kFormat]({});
757+
return this[kFormat]();
758758
}
759759

760760
set href(input) {
@@ -1011,7 +1011,7 @@ class URL {
10111011
toJSON() {
10121012
if (!isURLThis(this))
10131013
throw new ERR_INVALID_THIS('URL');
1014-
return this[kFormat]({});
1014+
return this[kFormat]();
10151015
}
10161016

10171017
static createObjectURL(obj) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.