diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-02 15:03:01 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-12-05 16:55:00 +0100 |
commit | 59257543c3db6f9ca01a91b75855934c2a913065 (patch) | |
tree | f2381b8db6f5d105a545d0452b4ec097c1810dba /lib/internal/crypto/hash.js | |
parent | dcc82b37b631d636e0fefc8272c357ec4a7d6df2 (diff) | |
download | android-node-v8-59257543c3db6f9ca01a91b75855934c2a913065.tar.gz android-node-v8-59257543c3db6f9ca01a91b75855934c2a913065.tar.bz2 android-node-v8-59257543c3db6f9ca01a91b75855934c2a913065.zip |
lib: use ES6 class inheritance style
PR-URL: https://github.com/nodejs/node/pull/24755
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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; |