summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authornick-ng <nick.ng@nick.ng>2018-10-12 10:17:54 -0700
committerTobias Nießen <tniessen@tnie.de>2018-10-20 00:43:28 +0200
commit4e96845cf73c31234a96ee0df5853700fe37d0fe (patch)
tree6213ec317d93fcf7ecb69b5ccff45a3058e78c23 /lib/crypto.js
parentc0d86b9e6144e91fe48f29c0d7f0b61c11b49597 (diff)
downloadandroid-node-v8-4e96845cf73c31234a96ee0df5853700fe37d0fe.tar.gz
android-node-v8-4e96845cf73c31234a96ee0df5853700fe37d0fe.tar.bz2
android-node-v8-4e96845cf73c31234a96ee0df5853700fe37d0fe.zip
crypto: migrate to getOptions()
Migrating from process.binding('config') to getOptions() in crypto.js. PR-URL: https://github.com/nodejs/node/pull/23562 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index bff21f6dd6..6d7330134b 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -35,7 +35,8 @@ const {
ERR_CRYPTO_FIPS_UNAVAILABLE
} = require('internal/errors').codes;
const constants = process.binding('constants').crypto;
-const { pendingDeprecation } = process.binding('config');
+const { getOptions } = internalBinding('options');
+const pendingDeprecation = getOptions('--pending-deprecation');
const {
fipsMode,
fipsForced