Skip to content

stream: don't push null from closed promise #42694

closed promise is subscribed to first so will be resolved first, before any read promise.

This causes data after EOF error to be thrown.

Remove the push null from the closed promise handler. The push null gets done from the read handler when it detects done.

Fixes: https://github.com/nodejs/node/issues/42694

Merge request reports

Loading