Skip to content

Commit 0c063a1

Browse files
RaisinTendanielleadams
authored andcommittedMay 31, 2021
doc,url: clarify domainTo* when built without ICU
Continuation of: #35099 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: #38789 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 4e11971 commit 0c063a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎doc/api/url.md

+6
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,9 @@ invalid domain, the empty string is returned.
942942

943943
It performs the inverse operation to [`url.domainToUnicode()`][].
944944

945+
This feature is only available if the `node` executable was compiled with
946+
[ICU][] enabled. If not, the domain names are passed through unchanged.
947+
945948
```mjs
946949
import url from 'url';
947950

@@ -979,6 +982,9 @@ domain, the empty string is returned.
979982

980983
It performs the inverse operation to [`url.domainToASCII()`][].
981984

985+
This feature is only available if the `node` executable was compiled with
986+
[ICU][] enabled. If not, the domain names are passed through unchanged.
987+
982988
```mjs
983989
import url from 'url';
984990

0 commit comments

Comments
 (0)
Please sign in to comment.