stream: fix regression on duplex end
Decide the return status of writeOrBuffer before calling stream.write which can reset state.length Add unit test for #35926 Refs: https://github.com/nodejs/node/issues/35926 PR-URL: https://github.com/nodejs/node/pull/35941 Fixes: https://github.com/nodejs/node/issues/35926 Reviewed-By:Matteo Collina <matteo.collina@gmail.com> Reviewed-By:
Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com>
parent
72ce5dcd
Please register or sign in to comment