Uh oh!
There was an error while loading. Please reload this page.
zlib: align with streams - #32220
Conversation
- 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.
eb857ea to
f9dfae6Compare| } | ||
| Transform.call(this, { autoDestroy: false, ...opts }); | ||
| this._hadError = false; |
There was a problem hiding this comment.
We could keep _hadError for compat if necessary.
ronag
commented
Mar 13, 2020
@nodejs/zlib |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BridgeAR
commented
Mar 17, 2020
It would be good to get another review. I would like to get this into the next v13.x release, if this is ready. |
nodejs-github-bot
commented
Mar 19, 2020
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Mar 19, 2020
ronag
commented
Mar 19, 2020
Landed in a940143 |
- 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: #32220 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
ronag
commented
Mar 19, 2020
FYI @BridgeAR |
MylesBorins
commented
Mar 19, 2020
Hey @ronag, this doesn't land cleanly on v13.x, should it be backported? |
- 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
kevinoid
commented
Mar 23, 2020
It appears that as a result of this PR, const{ Inflate }=require('zlib');newInflate().close(console.error);Prints nothing in 543c046 and I don't know whether this is expected behavior and/or whether the docs should be clearer (either about when to call |
'end' and 'finish' has been emitted through autoDestroy.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes