-
Notifications
You must be signed in to change notification settings - Fork 30k
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 <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
1 parent
4e111ce
commit eb20e3d
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:pass@example.com/'), | ||
new URL('https://user:pass@example.com/foo') | ||
); |