Skip to content

Commit e80043f

Browse files
Mesteerydanielleadams
authored andcommitted
lib: stop installing webcrypto if no_browser_globals is true
Refs: #41969 (comment) PR-URL: #41971 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Nitzan Uziely <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 9946b9b commit e80043f

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
@@ -168,7 +168,8 @@ function setupFetch() {
168168
// TODO(aduh95): move this to internal/bootstrap/browser when the CLI flag is
169169
// removed.
170170
function setupWebCrypto() {
171-
if (!getOptionValue('--experimental-global-webcrypto')) {
171+
if (process.config.variables.node_no_browser_globals ||
172+
!getOptionValue('--experimental-global-webcrypto')) {
172173
return;
173174
}
174175

0 commit comments

Comments
 (0)