zlib: Manage flush flags appropriately
authorisaacs <i@izs.me>
Fri, 8 Mar 2013 15:55:45 +0000 (07:55 -0800)
committerisaacs <i@izs.me>
Sat, 9 Mar 2013 02:56:31 +0000 (18:56 -0800)
commitb3cbb16f41f3a7dfdbe9ad087ef9465b30529b09
treec593b8687a21819d72eb5d0f1af86a1b348a569f
parent29cd0f2a77faa3b2a746e64e4871cded32e8aa98
zlib: Manage flush flags appropriately

If you call z.flush();z.write('foo'); then it would try to write 'foo'
before the flush was done, triggering an assertion in the zlib binding.

Closes #4950
doc/api/zlib.markdown
lib/zlib.js
test/simple/test-zlib-write-after-flush.js [new file with mode: 0644]