We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77cd2db commit 3ae1844Copy full SHA for 3ae1844
index.js
@@ -75,7 +75,8 @@ function toBuffer(data, encoding) {
75
* Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed
76
* Convert to our current Buffer implementation
77
*/
78
- if (Buffer.isBuffer(data) &&
+ if (
79
+ Buffer.isBuffer(data) &&
80
data.constructor &&
81
typeof data.constructor.isBuffer === 'function' &&
82
data.constructor.isBuffer(data)
0 commit comments