Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2de9868

Browse filesBrowse files
anonrigruyadorno
authored andcommitted
test: validate host with commas on url.parse
PR-URL: #48878 Backport-PR-URL: #48873 Refs: #48873 Refs: #48855 Refs: #48850 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent e426180 commit 2de9868
Copy full SHA for 2de9868

File tree

Expand file treeCollapse file tree

1 file changed

+16
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-0
lines changed
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.