diff options
Diffstat (limited to 'lib/internal/crypto/hash.js')
-rw-r--r-- | lib/internal/crypto/hash.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/crypto/hash.js b/lib/internal/crypto/hash.js index 460e47138e..f289d11cf8 100644 --- a/lib/internal/crypto/hash.js +++ b/lib/internal/crypto/hash.js @@ -39,6 +39,7 @@ function Hash(algorithm, options) { } Object.setPrototypeOf(Hash.prototype, LazyTransform.prototype); +Object.setPrototypeOf(Hash, LazyTransform); Hash.prototype._transform = function _transform(chunk, encoding, callback) { this[kHandle].update(chunk, encoding); @@ -100,6 +101,7 @@ function Hmac(hmac, key, options) { } Object.setPrototypeOf(Hmac.prototype, LazyTransform.prototype); +Object.setPrototypeOf(Hmac, LazyTransform); Hmac.prototype.update = Hash.prototype.update; |