mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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>