diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-08-27 14:44:19 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-08-30 18:27:09 +0300 |
commit | 503fd55a35ce056d636c15811c07b51126af271a (patch) | |
tree | f34e5d343543e20c36a93850d17ddd2bf2d93e3b | |
parent | 221df2286d079a741e844ef50da3e945a1dccb69 (diff) |
crypto: make _toBuf non-enumerable
PR-URL: https://github.com/nodejs/node/pull/22551
Refs: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | lib/crypto.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto.js b/lib/crypto.js index ecf0c4d10b6..569261030b3 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, |