forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url: drop ICU requirement for parsing hostnames
PR-URL: nodejs#47339 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
- Loading branch information
Showing
5 changed files
with
24 additions
and
66 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
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
'use strict'; | ||
|
||
if (internalBinding('config').hasIntl) { | ||
const { toASCII, toUnicode } = internalBinding('icu'); | ||
module.exports = { toASCII, toUnicode }; | ||
} else { | ||
const { domainToASCII, domainToUnicode } = require('internal/url'); | ||
module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode }; | ||
} | ||
const { domainToASCII, domainToUnicode } = require('internal/url'); | ||
module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode }; |
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 |
---|---|---|
@@ -1,36 +1,21 @@ | ||
{ | ||
"toascii.window.js": { | ||
"requires": ["small-icu"] | ||
}, | ||
"percent-encoding.window.js": { | ||
"requires": ["small-icu"], | ||
"skip": "TODO: port from .window.js" | ||
}, | ||
"historical.any.js": { | ||
"requires": ["small-icu"], | ||
"fail": { | ||
"note": "We are faking location with a URL object for the sake of the testharness and it has searchParams.", | ||
"expected": [ | ||
"searchParams on location object", | ||
"URL: no structured serialize/deserialize support", | ||
"URLSearchParams: no structured serialize/deserialize support" | ||
] | ||
} | ||
}, | ||
"urlencoded-parser.any.js": { | ||
"requires": ["small-icu"] | ||
}, | ||
"url-constructor.any.js": { | ||
"requires": ["small-icu"] | ||
}, | ||
"url-origin.any.js": { | ||
"requires": ["small-icu"] | ||
}, | ||
"url-setters.any.js": { | ||
"requires": ["small-icu"] | ||
}, | ||
"url-setters-a-area.window.js": { | ||
"skip": "already tested in url-setters.any.js" | ||
}, | ||
"IdnaTestV2.window.js": { | ||
"requires": ["small-icu"] | ||
"javascript-urls.window.js": { | ||
"skip": "requires document.body reference" | ||
} | ||
} |