diff options
Diffstat (limited to 'lib/internal/bootstrap/loaders.js')
-rw-r--r-- | lib/internal/bootstrap/loaders.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 155d9c9239..dfe904857f 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -73,6 +73,7 @@ ObjectDefineProperty(process, 'moduleLoadList', { writable: false }); + // internalBindingWhitelist contains the name of internalBinding modules // that are whitelisted for access via process.binding()... This is used // to provide a transition path for modules that are being moved over to @@ -81,6 +82,7 @@ const internalBindingWhitelist = [ 'async_wrap', 'buffer', 'cares_wrap', + 'config', 'constants', 'contextify', 'crypto', @@ -168,7 +170,7 @@ function NativeModule(id) { NativeModule._source = getInternalBinding('natives'); NativeModule._cache = {}; -const config = getBinding('config'); +const config = getInternalBinding('config'); // Think of this as module.exports in this file even though it is not // written in CommonJS style. |