mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 03:13:13 +00:00

PR-URL: https://github.com/nodejs/node/pull/35091 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
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 };
|
|
}
|