From 3a2814367b22027c2709a14c2e122f5b87e5d7b8 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 27 Dec 2018 08:56:08 +0100 Subject: [PATCH] crypto: add crypto/keys to cannotUseCache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently when configuring --without-ssl test-code-cache.js will fail with the following error: internal/bootstrap/loaders.js:151 mod = bindingObj[module] = getInternalBinding(module); ^ Error: No such module: crypto at internalBinding (internal/bootstrap/loaders.js:151:34) at internal/crypto/keys.js:14:5 at NativeModule.compile (internal/bootstrap/loaders.js:342:5) at Function.NativeModule.require (internal/bootstrap/loaders.js:213:16) at Function.Module._load (internal/modules/cjs/loader.js:539:25) at Module.require (internal/modules/cjs/loader.js:654:17) at require (internal/modules/cjs/helpers.js:22:18) at Object. (/node/test/code-cache/test-code-cache.js:31:3) at Module._compile (internal/modules/cjs/loader.js:718:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:729:10) This commit adds internal/crypto/keys to the cannotUseCache array if compiled without crypto support. PR-URL: https://github.com/nodejs/node/pull/25237 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Minwoo Jung --- lib/internal/bootstrap/cache.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/bootstrap/cache.js b/lib/internal/bootstrap/cache.js index 03e2800c79128c..5b71a86dd81a86 100644 --- a/lib/internal/bootstrap/cache.js +++ b/lib/internal/bootstrap/cache.js @@ -64,6 +64,7 @@ if (!process.versions.openssl) { 'internal/crypto/diffiehellman', 'internal/crypto/hash', 'internal/crypto/keygen', + 'internal/crypto/keys', 'internal/crypto/pbkdf2', 'internal/crypto/random', 'internal/crypto/scrypt',