diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-12-27 08:56:08 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-12-31 07:34:25 +0100 |
commit | d28980c46411ef1b10003b5c966938d6cd4d16d9 (patch) | |
tree | bd04d04263e8b99db4c0ab8c4955f2b6830f9c22 /lib | |
parent | 00babd38f37b9305281c5c290840978fb8b4c0aa (diff) | |
download | android-node-v8-d28980c46411ef1b10003b5c966938d6cd4d16d9.tar.gz android-node-v8-d28980c46411ef1b10003b5c966938d6cd4d16d9.tar.bz2 android-node-v8-d28980c46411ef1b10003b5c966938d6cd4d16d9.zip |
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.<anonymous> (/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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/bootstrap/cache.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/bootstrap/cache.js b/lib/internal/bootstrap/cache.js index 725425b2ce..580e7a9cb0 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', |