Skip to content

Commit 9c783c3

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 <luigipinca@gmail.com> Reviewed-By: Nitzan Uziely <linkgoron@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 3250d92 commit 9c783c3

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)