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
Getting the same with deflateSync used with a buffer.
importZlibfrom"browserify-zlib";constbyteArray=newTextEncoder().encode("foo");Zlib.deflateSync(byteArray.buffer);// should work, throws TypeError: not a string or bufferZlib.deflateSync(Buffer.from(byteArray));// works
For example, this code is fine with node:
But with browserify-zlib we get
TypeError: not a string or buffer
and we must write instead:The text was updated successfully, but these errors were encountered: