mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,url: clarify domainTo* when built without ICU
Continuation of: https://github.com/nodejs/node/pull/35099 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: https://github.com/nodejs/node/pull/38789 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
committed by
Antoine du Hamel
parent
d28eedba3a
commit
bbab59d7ca
@@ -942,6 +942,9 @@ invalid domain, the empty string is returned.
|
||||
|
||||
It performs the inverse operation to [`url.domainToUnicode()`][].
|
||||
|
||||
This feature is only available if the `node` executable was compiled with
|
||||
[ICU][] enabled. If not, the domain names are passed through unchanged.
|
||||
|
||||
```mjs
|
||||
import url from 'url';
|
||||
|
||||
@@ -979,6 +982,9 @@ domain, the empty string is returned.
|
||||
|
||||
It performs the inverse operation to [`url.domainToASCII()`][].
|
||||
|
||||
This feature is only available if the `node` executable was compiled with
|
||||
[ICU][] enabled. If not, the domain names are passed through unchanged.
|
||||
|
||||
```mjs
|
||||
import url from 'url';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user