From b8b23a3d78dee5afceda88a80608c1b181905896 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 21 Jan 2019 08:33:05 +0100 Subject: [PATCH] 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(+) diff --git a/lib/internal/bootstrap/cache.js b/lib/internal/bootstrap/cache.js index 5b71a86dd81a86..703ec35d0a41f6 100644 --- a/lib/internal/bootstrap/cache.js +++ b/lib/internal/bootstrap/cache.js @@ -72,6 +72,8 @@ if (!process.versions.openssl) { 'internal/crypto/util', 'internal/http2/core', 'internal/http2/compat', + 'internal/policy/manifest', + 'internal/process/policy', 'internal/streams/lazy_transform', ); }