Skip to content

Commit 4c7cdda

Browse files
ChALkeRljharb
andauthored
Update index.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent 394dc8f commit 4c7cdda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
4848
* Doesn't make sense with other TypedArray instances
4949
*/
5050
bufferData = Buffer.from(data);
51-
} else if (Buffer.isBuffer(data) && data.consructor && data.consructor.isBuffer && data.consructor.isBuffer(data)) {
51+
} else if (Buffer.isBuffer(data) && data.constructor && data.constructor.isBuffer && data.constructor.isBuffer(data)) {
5252
/*
5353
* Old Buffer polyfill on an engine that doesn't have TypedArray support
5454
* Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed

0 commit comments

Comments
 (0)