blob: 409cabedf10d1abf972f999dfa4f63d9a1402357 (
plain)
1
2
3
4
5
6
7
8
9
|
'use strict';
if (process.binding('config').hasIntl) {
const { toASCII, toUnicode } = internalBinding('icu');
module.exports = { toASCII, toUnicode };
} else {
const { toASCII, toUnicode } = require('punycode');
module.exports = { toASCII, toUnicode };
}
|