You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fregante, typeof Buffer call returns function in nodejs env in my case, not the object, so I proposed to use just typeof Buffer !== "undefined" test. The nodejs doc says The Buffer class is a subclass of ..., so function type makes sense.
Occurring on the line
serialize-error/index.js
Line 57 in ae264b0
Introduced in #39 CC @OfryL
Proposed fix:
if (Buffer.isBuffer(value)) {
=>if (typeof Buffer !== "undefined" && Buffer.isBuffer(value)) {
The text was updated successfully, but these errors were encountered: