Uh oh!
There was an error while loading. Please reload this page.
streams: add null check in Readable.from - #32873
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rexagod
commented
Apr 26, 2020
ping @addaleax@himself65 |
addaleax
commented
Apr 26, 2020
@rexagod This LGTM but it looks like this needs to be rebased against |
| } else { | ||
| reading = false; | ||
| const res = await value; | ||
| if (res == null) throw new ERR_STREAM_NULL_VALUES(); |
There was a problem hiding this comment.
I'm not sure I agree with this throwing. There is no way to catch this? I think it should do readable.destroy(new ERR_STREAM_NULL_VALUES()). @lpinca Thoughts?
ronag
commented
Apr 27, 2020
@nodejs/streams |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I would like @lpinca's feedback here on whether we |
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
Apr 27, 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
Apr 27, 2020
nodejs-github-bot
commented
Apr 27, 2020
addaleax
commented
Apr 27, 2020
@rexagod Looks like a merge commit somehow got in here, can you rebase this against |
Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to `Readable.from`. Also added docs for the same. Fixes: nodejs#32845 resolve recieved value and add test Update test/parallel/test-stream-readable-next-no-null.js Co-Authored-By: 扩散性百万甜面包 <himself65@outlook.com> rebase fix fixup fixup: destroy -> throw
nodejs-github-bot
commented
Apr 28, 2020
nodejs-github-bot
commented
Apr 29, 2020
Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to `Readable.from`. Also added docs for the same. Co-Authored-By: 扩散性百万甜面包 <himself65@outlook.com> Fixes: #32845 PR-URL: #32873 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
mcollina
commented
Apr 29, 2020
Landed in 2cd7970 |
Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to `Readable.from`. Also added docs for the same. Co-Authored-By: 扩散性百万甜面包 <himself65@outlook.com> Fixes: #32845 PR-URL: #32873 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to `Readable.from`. Also added docs for the same. Co-Authored-By: 扩散性百万甜面包 <himself65@outlook.com> Fixes: #32845 PR-URL: #32873 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to `Readable.from`. Also added docs for the same. Co-Authored-By: 扩散性百万甜面包 <himself65@outlook.com> Fixes: #32845 PR-URL: #32873 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Throws
ERR_STREAM_NULL_VALUESerror if a null value is passed toReadable.from. Also added docs for the same.Fixes: #32845
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes