lib: migrate process.binding to internalBinding

PR-URL: https://github.com/nodejs/node/pull/23517
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
pull/23548/merge
surreal8 2018-10-12 12:17:34 -05:00 committed by Ruben Bridgewater
parent ad6b09f709
commit 544d4976b9
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ exports.ESMLoader = undefined;
exports.setup = function() { exports.setup = function() {
let ESMLoader = new Loader(); let ESMLoader = new Loader();
const loaderPromise = (async () => { const loaderPromise = (async () => {
const userLoader = process.binding('config').userLoader; const userLoader = internalBinding('options').getOptions('--loader');
if (userLoader) { if (userLoader) {
const hooks = await ESMLoader.import( const hooks = await ESMLoader.import(
userLoader, pathToFileURL(`${process.cwd()}/`).href); userLoader, pathToFileURL(`${process.cwd()}/`).href);