Skip to content

Commit 64140af

Browse files
RaisinTenrichardlau
authored andcommitted
doc,url: clarify domainTo* when built without ICU
Continuation of: nodejs#35099 Signed-off-by: Darshan Sen <[email protected]> PR-URL: nodejs#38789 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent f07e576 commit 64140af

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
@@ -913,6 +913,9 @@ invalid domain, the empty string is returned.
913913

914914
It performs the inverse operation to [`url.domainToUnicode()`][].
915915

916+
This feature is only available if the `node` executable was compiled with
917+
[ICU][] enabled. If not, the domain names are passed through unchanged.
918+
916919
```js
917920
const url = require('url');
918921
console.log(url.domainToASCII('español.com'));
@@ -938,6 +941,9 @@ domain, the empty string is returned.
938941

939942
It performs the inverse operation to [`url.domainToASCII()`][].
940943

944+
This feature is only available if the `node` executable was compiled with
945+
[ICU][] enabled. If not, the domain names are passed through unchanged.
946+
941947
```js
942948
const url = require('url');
943949
console.log(url.domainToUnicode('xn--espaol-zwa.com'));

0 commit comments

Comments
 (0)