Uh oh!
There was an error while loading. Please reload this page.
doc: clarify unshift EOF - #29950
Conversation
Fishrock123
commented
Oct 15, 2019
@ronag Could you please describe what the present behavior is? (i.e. before this change.) |
ronag
commented
Oct 15, 2019
@Fishrock123: Previously |
Fishrock123
commented
Oct 15, 2019
As in, end the stream? It seems reasonable then to also accept |
ronag
commented
Oct 15, 2019
Well, it's not really 'expedited' since it is exactly the same as Unshifting "eof" sounds very weird to me. Though, now that you question it there is probably no harm in it either... I don't mind closing this. |
jasnell
commented
Oct 15, 2019
I think there would at least be value in documenting |
Fishrock123
commented
Oct 16, 2019
I think we should document it, and then think about if you should be able to actually unshift EOF so that it comes before other data. |
Trott
commented
Oct 16, 2019
@nodejs/streams |
mcollina
commented
Oct 16, 2019
Why we should not unshift EOF? |
I guess the confusion is, what does it mean to unshift EOF? Right now it behaves exactly like push EOF which is unexpected/confusing/undefined. |
mcollina
left a comment
There was a problem hiding this comment.
I do not see a compelling reason to change this.
I changed this to only a doc update. @Fishrock123 |
20a6c34 to
4f73edfCompareUh oh!
There was an error while loading. Please reload this page.
7d15e65 to
e184520CompareTrott
commented
Oct 16, 2019
Trott
commented
Oct 16, 2019
Landed in 273d38b |
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
We should not allow unshifting EOF.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes