diff --git a/lib/crypto.js b/lib/crypto.js index ecf0c4d10b696c..569261030b3ae7 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -137,7 +137,6 @@ function createVerify(algorithm, options) { module.exports = exports = { // Methods - _toBuf: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114'), createCipheriv, createDecipheriv, createDiffieHellman, @@ -202,6 +201,10 @@ function getFipsForced() { } Object.defineProperties(exports, { + _toBuf: { + enumerable: false, + value: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114') + }, createCipher: { enumerable: false, value: deprecate(createCipher,