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