Uh oh!
There was an error while loading. Please reload this page.
stream: ensure errorEmitted is always set - #28709
Conversation
ronag
commented
Jul 15, 2019
@mcollina ping (sorry for spam?) |
44e5572 to
51428f8CompareUh oh!
There was an error while loading. Please reload this page.
51428f8 to
d7bc957Comparemcollina
commented
Jul 16, 2019
Would you mind adding another unit test on the actual behavior change? What consequences has setting |
ronag
commented
Jul 16, 2019
@mcollina: Not sure what you expect there :/ |
mcollina
commented
Jul 16, 2019
I don't know why you are proposing this change. What's the end user result for this? |
ronag
commented
Jul 16, 2019
@mcollina: Because sometimes e.g. _writable_stream: SET https://github.com/nodejs/node/blob/master/lib/_stream_writable.js#L431 NOT SET https://github.com/nodejs/node/blob/master/lib/_stream_writable.js#L252 |
mcollina
commented
Jul 16, 2019
+1. I prefer tests that try to double-emit errors and we block them rather than tests about internals. That's what I'm asking for.
I'm conservative of changes, as every change we do to streams can break a lot of people. |
Thank you. Makes sense.
Haha, I guess that is your job. I'm very keen on consistency and predicability. Unfortunately at the moment it is almost a requirement to read the Node code to figure out how things actually work before using them. I will try to help out within your zone. |
mscdex
commented
Jul 16, 2019
I agree, we should be running CITGM for the event and stream-related changes in this and the other PRs. |
d7bc957 to
821cc7aCompareronag
commented
Jul 16, 2019
@mcollina tests updated |
432d8b2 to
a2b670aComparenodejs-github-bot
commented
Jul 19, 2019
Uh oh!
There was an error while loading. Please reload this page.
1c99240 to
f018384Comparemcollina
commented
Aug 7, 2019
1 similar comment
nodejs-github-bot
commented
Aug 7, 2019
nodejs-github-bot
commented
Aug 8, 2019
mcollina
commented
Aug 8, 2019
mcollina
commented
Aug 9, 2019
Can you rebase on top of master? CITGM is failing because of that esm bug. |
f018384 to
51d97bfCompareronag
commented
Aug 9, 2019
Rebased. |
nodejs-github-bot
commented
Aug 9, 2019
mcollina
commented
Aug 9, 2019
ronag
commented
Aug 19, 2019
This was fixed in 4a2bd69 |
_writableState.errorEmittedshould always be set onerror.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes