diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-08-27 13:44:19 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-08-30 17:27:09 +0200 |
commit | 503fd55a35ce056d636c15811c07b51126af271a (patch) | |
tree | f34e5d343543e20c36a93850d17ddd2bf2d93e3b /lib/crypto.js | |
parent | 221df2286d079a741e844ef50da3e945a1dccb69 (diff) | |
download | android-node-v8-503fd55a35ce056d636c15811c07b51126af271a.tar.gz android-node-v8-503fd55a35ce056d636c15811c07b51126af271a.tar.bz2 android-node-v8-503fd55a35ce056d636c15811c07b51126af271a.zip |
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>
Diffstat (limited to 'lib/crypto.js')
-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 ecf0c4d10b..569261030b 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, |