mirror of https://github.com/nodejs/node.git
10 lines
312 B
JavaScript
10 lines
312 B
JavaScript
'use strict';
|
|
|
|
if (internalBinding('config').hasIntl) {
|
|
const { toASCII, toUnicode } = internalBinding('icu');
|
|
module.exports = { toASCII, toUnicode };
|
|
} else {
|
|
const { domainToASCII, domainToUnicode } = require('internal/url');
|
|
module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode };
|
|
}
|