Skip to content

Commit

Permalink
crypto: make _toBuf non-enumerable
Browse files Browse the repository at this point in the history
PR-URL: #22551
Refs: #22501
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
tniessen committed Aug 30, 2018
1 parent 221df22 commit 503fd55
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 @@ -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,
Expand Down

0 comments on commit 503fd55

Please sign in to comment.