diff options
author | Andres Monge <jacjam@gmail.com> | 2018-10-12 09:41:57 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-13 14:49:42 -0700 |
commit | 9d1c9d7e9b9ae1ab201206fc85b7f553fb2bd6bb (patch) | |
tree | 3ed56cbad48a1399add353623444157154ba464c /lib | |
parent | 401dac324c5e7b24d3e6663d29589b11562c5b12 (diff) | |
download | android-node-v8-9d1c9d7e9b9ae1ab201206fc85b7f553fb2bd6bb.tar.gz android-node-v8-9d1c9d7e9b9ae1ab201206fc85b7f553fb2bd6bb.tar.bz2 android-node-v8-9d1c9d7e9b9ae1ab201206fc85b7f553fb2bd6bb.zip |
lib: migrate from process.binding to internalBinding
We are migrating towards using internalBinding(\'options\').getOptions()
instead of process.binding(\'config\') to access the value of the
--experimental-vm-modules command line option.
PR-URL: https://github.com/nodejs/node/pull/23586
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vm.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -415,7 +415,7 @@ module.exports = { compileFunction, }; -if (process.binding('config').experimentalVMModules) { +if (internalBinding('options').getOptions('--experimental-vm-modules')) { const { SourceTextModule } = require('internal/vm/source_text_module'); module.exports.SourceTextModule = SourceTextModule; } |