Skip to content

Commit 503fd55

Browse files
committedAug 30, 2018
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>
1 parent 221df22 commit 503fd55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎lib/crypto.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ function createVerify(algorithm, options) {
137137

138138
module.exports = exports = {
139139
// Methods
140-
_toBuf: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114'),
141140
createCipheriv,
142141
createDecipheriv,
143142
createDiffieHellman,
@@ -202,6 +201,10 @@ function getFipsForced() {
202201
}
203202

204203
Object.defineProperties(exports, {
204+
_toBuf: {
205+
enumerable: false,
206+
value: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114')
207+
},
205208
createCipher: {
206209
enumerable: false,
207210
value: deprecate(createCipher,

0 commit comments

Comments
 (0)