Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
ChALkeR and ljharb authored Nov 17, 2024
1 parent 394dc8f commit 4c7cdda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
* Doesn't make sense with other TypedArray instances
*/
bufferData = Buffer.from(data);
} else if (Buffer.isBuffer(data) && data.consructor && data.consructor.isBuffer && data.consructor.isBuffer(data)) {
} else if (Buffer.isBuffer(data) && data.constructor && data.constructor.isBuffer && data.constructor.isBuffer(data)) {
/*
* Old Buffer polyfill on an engine that doesn't have TypedArray support
* Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed
Expand Down

0 comments on commit 4c7cdda

Please sign in to comment.