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
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Calling any of the zlib "convenience methods" (inflate, deflate, inflateRaw, deflateRaw, gzip, gunzip, gzipRaw, gunzipRaw) with a non-string input results an uncaught error about removeListener.
For example:
zlib.gunzip(1, function (err, result) {
console.log(err);
});
Expected:
"Invalid argument" error should be logged.
Actual:
Error: removeListener only takes instances of Function
at Gzip.removeListener (events.js:165:11)
at Gzip.<anonymous> (zlib.js:126:12)
at Gzip.emit (events.js:67:17)
at Gzip.write (zlib.js:291:17)
at zlibBuffer (zlib.js:158:10)
at Object.gzip (zlib.js:98:3)
It appears that zlibBuffer is not passing a function argument to removeListener on lines 165 and 166.
The text was updated successfully, but these errors were encountered:
nlacasse
pushed a commit
to nlacasse/node
that referenced
this issue
Dec 20, 2011
Node v0.6.6 on Linux
Calling any of the zlib "convenience methods" (inflate, deflate, inflateRaw, deflateRaw, gzip, gunzip, gzipRaw, gunzipRaw) with a non-string input results an uncaught error about removeListener.
For example:
Expected:
"Invalid argument" error should be logged.
Actual:
It appears that zlibBuffer is not passing a function argument to removeListener on lines 165 and 166.
The text was updated successfully, but these errors were encountered: