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 — test: validate host with commas on url.parse · nodejs/node@3680a66

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-url-parse-format.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-url-parse-format.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-url-parse-format.js
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,22 @@ const parseTests = {
10071007
path: '/',
10081008
href: 'https://evil.com$.example.com/'
10091009
},
1010+
1011+
// Validate the output of hostname with commas.
1012+
'x://0.0,1.1/': {
1013+
protocol: 'x:',
1014+
slashes: true,
1015+
auth: null,
1016+
host: '0.0,1.1',
1017+
port: null,
1018+
hostname: '0.0,1.1',
1019+
hash: null,
1020+
search: null,
1021+
query: null,
1022+
pathname: '/',
1023+
path: '/',
1024+
href: 'x://0.0,1.1/'
1025+
}
10101026
};
10111027

10121028
for (const u in parseTests) {

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.