Currently, we're using uidna_nameToASCII_UTF8 or uidna_nameToUnicodeUTF8 when users call domainToASCII or domainToUnicode with the url modules, but accoding to the specification it should be uidna_IDNToASCII and uidna_IDNToUnicode instead of them.
Then this test case doesn't work because of it. The inputs will be ., .. and 0..0x300 in this case.
How about adding the following methods into node_i18n to fix this issue?
- binding('intl').IDNToASCII
- binding('intl').IDNToUnicode
Currently, we're using
uidna_nameToASCII_UTF8oruidna_nameToUnicodeUTF8when users calldomainToASCIIordomainToUnicodewith theurlmodules, but accoding to the specification it should beuidna_IDNToASCIIanduidna_IDNToUnicodeinstead of them.Then this test case doesn't work because of it. The inputs will be
.,..and0..0x300in this case.How about adding the following methods into
node_i18nto fix this issue?