diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-21 08:33:05 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-24 05:23:53 +0100 |
commit | 47062f12a7095658f1f7cff7d25234ea21a839cf (patch) | |
tree | 52d1ba96408df6c55e7d1a67fc6ae502fead721b /lib | |
parent | e47f972d6851b3196b3b2ba611929f25a5fcadb6 (diff) | |
download | android-node-v8-47062f12a7095658f1f7cff7d25234ea21a839cf.tar.gz android-node-v8-47062f12a7095658f1f7cff7d25234ea21a839cf.tar.bz2 android-node-v8-47062f12a7095658f1f7cff7d25234ea21a839cf.zip |
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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/bootstrap/cache.js | 2 |
1 files changed, 2 insertions, 0 deletions
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', ); } |