mirror of https://github.com/nodejs/node.git
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
parent
ad6b09f709
commit
544d4976b9
|
@ -48,7 +48,7 @@ exports.ESMLoader = undefined;
|
|||
exports.setup = function() {
|
||||
let ESMLoader = new Loader();
|
||||
const loaderPromise = (async () => {
|
||||
const userLoader = process.binding('config').userLoader;
|
||||
const userLoader = internalBinding('options').getOptions('--loader');
|
||||
if (userLoader) {
|
||||
const hooks = await ESMLoader.import(
|
||||
userLoader, pathToFileURL(`${process.cwd()}/`).href);
|
||||
|
|
Loading…
Reference in New Issue