lib: convert legacy process.binding to internalBinding
PR-URL: https://github.com/nodejs/node/pull/26095 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
c3d889182b
commit
04c839bd8c
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
if (process.binding('config').hasIntl) {
|
||||
if (internalBinding('config').hasIntl) {
|
||||
const { toASCII, toUnicode } = internalBinding('icu');
|
||||
module.exports = { toASCII, toUnicode };
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user