Skip to content

Commit 32d9dff

Browse files
committed
idna: use url module instead of punycode
1 parent e0d3b75 commit 32d9dff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/idna.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ if (internalBinding('config').hasIntl) {
44
const { toASCII, toUnicode } = internalBinding('icu');
55
module.exports = { toASCII, toUnicode };
66
} else {
7-
const { toASCII, toUnicode } = require('punycode');
8-
module.exports = { toASCII, toUnicode };
7+
const { domainToASCII, domainToUnicode } = require('internal/url');
8+
module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode };
99
}

test/parallel/test-bootstrap-modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ if (!common.isMainThread) {
119119
if (common.hasIntl) {
120120
expectedModules.add('Internal Binding icu');
121121
} else {
122-
expectedModules.add('NativeModule punycode');
122+
expectedModules.add('NativeModule url');
123123
}
124124

125125
if (process.features.inspector) {

0 commit comments

Comments
 (0)