Skip to content

Commit

Permalink
crypto: make _toBuf non-enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Aug 27, 2018
1 parent 50aa85d commit 8ba1d71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ function createVerify(algorithm, options) {

module.exports = exports = {
// Methods
_toBuf: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114'),
createCipheriv,
createDecipheriv,
createDiffieHellman,
Expand Down Expand Up @@ -205,6 +204,10 @@ function getFipsForced() {
}

Object.defineProperties(exports, {
_toBuf: {
enumerable: false,
value: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114')
},
createCipher: {
enumerable: false,
value: deprecate(createCipher,
Expand Down

0 comments on commit 8ba1d71

Please sign in to comment.