diff options
author | Momtchil Momtchev <momtchil@momtchev.com> | 2020-11-03 12:51:47 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-11-04 16:12:38 +0300 |
commit | 5a3f43b255af6968606f13258447894f946ee3ce (patch) | |
tree | bbd19f641c7e0dece57666da279b5513666a155c /doc/api/worker_threads.md | |
parent | 72ce5dcd52b4bce69fdc35c666fa22813634e77e (diff) |
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>
Diffstat (limited to 'doc/api/worker_threads.md')
0 files changed, 0 insertions, 0 deletions