From bbab59d7ca7d4d49965940f67df6a0087cf0fd82 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Sun, 23 May 2021 21:09:33 +0530 Subject: [PATCH] doc,url: clarify domainTo* when built without ICU Continuation of: https://github.com/nodejs/node/pull/35099 Signed-off-by: Darshan Sen PR-URL: https://github.com/nodejs/node/pull/38789 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel --- doc/api/url.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index 27b3b69e4447d2..0dde9e625603c5 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -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';