Skip to content

Commit 53e2e8c

Browse files
Mesteerybengl
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 ec5b594 commit 53e2e8c

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
@@ -186,7 +186,8 @@ function setupFetch() {
186186
// TODO(aduh95): move this to internal/bootstrap/browser when the CLI flag is
187187
// removed.
188188
function setupWebCrypto() {
189-
if (!getOptionValue('--experimental-global-webcrypto')) {
189+
if (process.config.variables.node_no_browser_globals ||
190+
!getOptionValue('--experimental-global-webcrypto')) {
190191
return;
191192
}
192193

0 commit comments

Comments
 (0)