-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: set HAS_USERNAME/PASSWORD more strictly
Fixes: #24211 PR-URL: #24495 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
// This tests that the internal flags in URL objects are consistent, as manifest | ||
// through assert libraries. | ||
// See https://github.com/nodejs/node/issues/24211 | ||
|
||
// Tests below are not from WPT. | ||
|
||
require('../common'); | ||
const assert = require('assert'); | ||
|
||
assert.deepStrictEqual( | ||
new URL('./foo', 'https://example.com/'), | ||
new URL('https://example.com/foo') | ||
); | ||
assert.deepStrictEqual( | ||
new URL('./foo', 'https://user:[email protected]/'), | ||
new URL('https://user:[email protected]/foo') | ||
); |