From 16e80a0ee1858b0744978ec086a58ef34fc8f4d8 Mon Sep 17 00:00:00 2001 From: surreal8 Date: Fri, 12 Oct 2018 12:17:34 -0500 Subject: [PATCH] lib: migrate process.binding to internalBinding PR-URL: https://github.com/nodejs/node/pull/23517 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Jeremiah Senkpiel Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- lib/internal/process/esm_loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/esm_loader.js b/lib/internal/process/esm_loader.js index b2415ec171f985..72d39a69600d88 100644 --- a/lib/internal/process/esm_loader.js +++ b/lib/internal/process/esm_loader.js @@ -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);