From 1a787e93b35cf7a61e81b5a481c3852de8e5f87c 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 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. --- 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 725425b2cec4f1..580e7a9cb0da7a 100644 --- a/lib/internal/bootstrap/cache.js +++ b/lib/internal/bootstrap/cache.js @@ -55,6 +55,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',