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:
ZYSzys 2019-02-14 17:07:18 +08:00 committed by Daniel Bevenius
parent c3d889182b
commit 04c839bd8c

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
if (process.binding('config').hasIntl) { if (internalBinding('config').hasIntl) {
const { toASCII, toUnicode } = internalBinding('icu'); const { toASCII, toUnicode } = internalBinding('icu');
module.exports = { toASCII, toUnicode }; module.exports = { toASCII, toUnicode };
} else { } else {