Skip to content
Permalink
Browse files

crypto: make _toBuf non-enumerable

PR-URL: #22551
Refs: #22501
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
tniessen committed Aug 27, 2018
1 parent 221df22 commit 503fd55a35ce056d636c15811c07b51126af271a
Showing with 4 additions and 1 deletion.
  1. +4 −1 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,

0 comments on commit 503fd55

Please sign in to comment.
You can’t perform that action at this time.