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
I ran into this while writing a browser side Writable Stream.
The problem is basically that Buffer.isBuffer(buf) returns false although it is one. This is due to buf instanceof Buffer returning false -- I tried this in the browser console as well.
@toots Any chance of getting this fixed? I'm currently having to manually change Buffer.isBuffer() to use util.isBuffer()'s logic (similar to @thlorenz's workaround) because require('stream').Readable uses Buffer.isBuffer() in chunkInvalid() and that always fails with the current Buffer.isBuffer() implementation.
Hi guys. Unfortunately, I don't have a lot of time to investigate this at the moment. I'd be happy to consider a PR, although I am concerned as to why buf instanceof Buffer isn't returning the expected value. Maybe there's something more important going on here..
I ran into this while writing a browser side Writable Stream.
The problem is basically that
Buffer.isBuffer(buf)
returnsfalse
although it is one. This is due tobuf instanceof Buffer
returningfalse
-- I tried this in the browser console as well.I commented on my workaround here.
You could use this project as a test bed, i.e.:
You should then be able to debug into
d3-gauge-writable
assuming you enabled source maps on your browser.The text was updated successfully, but these errors were encountered: