Skip to content

Commit 15bcb4c

Browse files
authored
lib: stop installing webcrypto if no_browser_globals is true
Refs: nodejs#41969 (comment)
1 parent 4c4bd1c commit 15bcb4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/bootstrap/pre_execution.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ function setupFetch() {
167167
// TODO(aduh95): move this to internal/bootstrap/browser when the CLI flag is
168168
// removed.
169169
function setupWebCrypto() {
170-
if (!getOptionValue('--experimental-global-webcrypto')) {
170+
if (process.config.variables.node_no_browser_globals ||
171+
!getOptionValue('--experimental-global-webcrypto')) {
171172
return;
172173
}
173174

0 commit comments

Comments
 (0)