Skip to content

Commit

Permalink
lib: migrate process.binding to internalBinding
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
surreal8 authored and MylesBorins committed Oct 30, 2018
1 parent ad83caf commit 9b89e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/process/esm_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ 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);
Expand Down

0 comments on commit 9b89e9c

Please sign in to comment.