FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: stop installing webcrypto if `no_browser_globals` is `true` · nodejs/node@53e2e8c · GitHub

/ node Public

Commit 53e2e8c

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/internal/bootstrap/pre_execution.js‎

Lines changed: 2 additions & 1 deletion
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)

Back | FazBrowse Home | New Git URL