From 4e96845cf73c31234a96ee0df5853700fe37d0fe Mon Sep 17 00:00:00 2001 From: nick-ng Date: Fri, 12 Oct 2018 10:17:54 -0700 Subject: [PATCH] crypto: migrate to getOptions() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migrating from process.binding('config') to getOptions() in crypto.js. PR-URL: https://github.com/nodejs/node/pull/23562 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen --- lib/crypto.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crypto.js b/lib/crypto.js index bff21f6dd65799..6d7330134b33fa 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