diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index fad09f49cc8532..05301ad439c60c 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -186,7 +186,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; }