(host)
| 3924 | return longestIndex; |
| 3925 | } |
| 3926 | function serializeHost(host) { |
| 3927 | if (typeof host === "number") { |
| 3928 | return serializeIPv4(host); |
| 3929 | } |
| 3930 | if (host instanceof Array) { |
| 3931 | return `[${serializeIPv6(host)}]`; |
| 3932 | } |
| 3933 | return host; |
| 3934 | } |
| 3935 | function domainToASCII(domain, beStrict = false) { |
| 3936 | const result = tr46.toASCII(domain, { |
| 3937 | checkHyphens: beStrict, |
no test coverage detected
searching dependent graphs…