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>
This commit is contained in:
Tobias Nießen 2018-08-27 13:44:19 +02:00
parent 221df2286d
commit 503fd55a35
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -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,