Skip to content

Commit 8ba1d71

Browse files
committed
crypto: make _toBuf non-enumerable
Refs: nodejs#22501 Refs: nodejs#22519
1 parent 50aa85d commit 8ba1d71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/crypto.js

Lines changed: 4 additions & 1 deletion
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,
@@ -205,6 +204,10 @@ function getFipsForced() {
205204
}
206205

207206
Object.defineProperties(exports, {
207+
_toBuf: {
208+
enumerable: false,
209+
value: deprecate(toBuf, 'crypto._toBuf is deprecated.', 'DEP0114')
210+
},
208211
createCipher: {
209212
enumerable: false,
210213
value: deprecate(createCipher,

0 commit comments

Comments
 (0)