Skip to content

Commit b8b23a3

Browse files
danbevMylesBorins
authored andcommitted
crypto: add crypto modules to cannotUseCache
Currently, when configured --without-ssl there are two failures like the following: internal/util.js:101 throw new ERR_NO_CRYPTO(); ^ Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support at assertCrypto (internal/util.js:101:11) at crypto.js:31:1 at NativeModule.compile (internal/bootstrap/loaders.js:316:5) at NativeModule.require (internal/bootstrap/loaders.js:219:7) at internal/policy/manifest.js:10:16 at NativeModule.compile (internal/bootstrap/loaders.js:316:5) at NativeModule.require (internal/bootstrap/loaders.js:219:7) at internal/process/policy.js:6:22 at NativeModule.compile (internal/bootstrap/loaders.js:316:5) at Function.NativeModule.require (internal/bootstrap/loaders.js:219:7) This commit adds policy/manifest and process/policy to cannotUseCache. PR-URL: #25606 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 16a92f6 commit b8b23a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/bootstrap/cache.js

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ if (!process.versions.openssl) {
7272
'internal/crypto/util',
7373
'internal/http2/core',
7474
'internal/http2/compat',
75+
'internal/policy/manifest',
76+
'internal/process/policy',
7577
'internal/streams/lazy_transform',
7678
);
7779
}

0 commit comments

Comments
 (0)