| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Ensure automatic destruction only happens after both 'end' and 'finish' has been emitted through autoDestroy. - Ensure close() callback is always invoked. - Ensure 'error' is only emitted once. PR-URL: nodejs#32220 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Backport-PR-URL: nodejs#32371
Sorry, something went wrong.
|
also there are a ton of failures PTAL |
Sorry, something went wrong.
Sorry, something went wrong.
|
I think most of the failures is due to the fact we don't emit 'error' twice but I'd like a second opinion. @nodejs/streams. See the fixup commit. |
Sorry, something went wrong.
Sorry, something went wrong.
| ts.on('close', common.mustCall(() => { | ||
| ts.close(common.mustCall()); | ||
| })); | ||
| ts.on('close', common.mustCall()); |
There was a problem hiding this comment.
finished does not invoke callback on closed stream, this was a semver-major fix does not land on 13
Sorry, something went wrong.
| name: 'Error', | ||
| message: 'Cannot call write after a stream was destroyed' | ||
| } | ||
| ); |
There was a problem hiding this comment.
I'm a little unsure how exactly this could throw before.
Sorry, something went wrong.
| assert.throws( | ||
| () => gunzip.write({}), | ||
| TypeError | ||
| ); |
There was a problem hiding this comment.
I'm a little unsure how exactly this could throw before.
Sorry, something went wrong.
|
PR was just labeled as semver-major so I guess this should not be backported. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR-URL: #32220
Checklist