Skip to content

Commit

Permalink
lib: stop installing webcrypto if no_browser_globals is true
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mesteery authored and danielleadams committed Apr 24, 2022
1 parent 9946b9b commit e80043f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/bootstrap/pre_execution.js
Expand Up @@ -168,7 +168,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;
}

Expand Down

0 comments on commit e80043f

Please sign in to comment.