From 544d4976b97dde111bd48dbd3a7a1a2ae4a198b8 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 b2415ec171f..72d39a69600 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);