diff options
Diffstat (limited to 'src/bun.js/crypto.exports.js')
-rw-r--r-- | src/bun.js/crypto.exports.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bun.js/crypto.exports.js b/src/bun.js/crypto.exports.js index 4001179e8..95e6674e8 100644 --- a/src/bun.js/crypto.exports.js +++ b/src/bun.js/crypto.exports.js @@ -1182,7 +1182,9 @@ var require_browser2 = __commonJS({ } copy() { - return new CryptoHasher(this.#algorithm); + const copy = new Hash(this.#algorithm); + copy.#hasher = this.#hasher.copy(); + return copy; } } |