From 83cafe64fb079d1918277f53e99474402baf6fe6 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() Migrating from process.binding('config') to getOptions() in crypto.js --- 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