From 47062f12a7095658f1f7cff7d25234ea21a839cf Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 21 Jan 2019 08:33:05 +0100 Subject: 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: https://github.com/nodejs/node/pull/25606 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- lib/internal/bootstrap/cache.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/internal') diff --git a/lib/internal/bootstrap/cache.js b/lib/internal/bootstrap/cache.js index c89286ce0f..8349424587 100644 --- a/lib/internal/bootstrap/cache.js +++ b/lib/internal/bootstrap/cache.js @@ -59,6 +59,8 @@ if (!process.versions.openssl) { 'internal/crypto/util', 'internal/http2/core', 'internal/http2/compat', + 'internal/policy/manifest', + 'internal/process/policy', 'internal/streams/lazy_transform', ); } -- cgit v1.2.3