mattrobenolt/node — comment on commit 5f822fbd0e4e1dcb33c9e04c1581ebe2211fb7ad
File: lib/zlib.js line 105
By isaacs:

> When 'end' is emitted, I need to combine the Buffers and returned a large joined Buffer.

Ah, derp, yes of course. My bad. In any case, you need to remove them both when an error happens. (Once end happens, it's unnecessary, since end will only ever happen once, and no errors will happen after end.)

> I see the "destroy()" method not existing now.

Yes, that's a Stream method (which not all Stream objects have, I know, I know), not an EventEmitter method.