stream: do not emit end on readable error

PR-URL: https://github.com/nodejs/node/pull/39607
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Szymon Marczak 2021-07-31 19:09:14 +02:00 committed by Node.js GitHub Bot
parent c61870c376
commit ef992f6de9
12 changed files with 24 additions and 14 deletions

View file

@ -102,7 +102,7 @@ function runTest(test) {
});
}
req.on('end', common.mustCall());
req.on('end', common.mustNotCall());
req.on('close', common.mustCall(() => {
client.destroy();