diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index 0262497747fc23..da4c2d2a2adeaa 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -168,7 +168,8 @@ function setupFetch() { // TODO(aduh95): move this to internal/bootstrap/browser when the CLI flag is // removed. function setupWebCrypto() { - if (!getOptionValue('--experimental-global-webcrypto')) { + if (process.config.variables.node_no_browser_globals || + !getOptionValue('--experimental-global-webcrypto')) { return; }