Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix streams breaking on reverted EventEmitter / Make Discord.js work #2913

Merged
merged 11 commits into from
Jun 1, 2023
Prev Previous commit
Next Next commit
fix hash copy
  • Loading branch information
paperclover committed Jun 1, 2023
commit 758186f68eabc27cd36b5ccfa9728a8be9192c72
4 changes: 3 additions & 1 deletion src/bun.js/crypto.exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -1160,8 +1160,10 @@ var require_browser2 = __commonJS({
}
};
LazyHash.prototype.copy = function copy() {
const copy = new LazyHash(this.#algorithm);
const copy = Object.create(LazyHash.prototype);
copy._options = this._options;
copy._hasher = this._hasher.copy();
copy._finalized = this._finalized;
return copy;
};

Expand Down