stream: throw invalid argument errors#31831
Conversation
92ac737 to
36172d3
Compare
75f4dd3 to
f334f94
Compare
Logic errors that do not depend on stream state should throw instead of invoke callback and emit error.
9f2b5ec to
722975a
Compare
|
@lpinca: Updated per our discussion |
abecd9f to
93c4107
Compare
| gunzip.on('error', common.expectsError({ | ||
| name: 'TypeError' | ||
| })); | ||
| }); |
Co-Authored-By: Luigi Pinca <[email protected]>
|
eslint-jest fails in CITGM: |
|
CITGM failures does not seem related to this PR. |
|
I think this can land given that the CITGM failures seems unrelated. @Trott I'd appreciate a second opinion before landing. |
Yes, I'd agree. Thanks for opening nodejs/citgm#785. |
Oh, wait, I agree that CITGM is not an obstacle. But it does still need a second TSC approval because it's semver-major. @nodejs/tsc |
Looks good to me and I've added my approval, so this can land. Might not be a bad idea to leave it open for 24 hours or so just to give people one more chance to take a look, but that's not strictly required. |
Logic errors that do not depend on stream state should throw instead of invoke callback and emit error. PR-URL: #31831 Refs: #31818 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Rich Trott <[email protected]>
|
Landed in 1f20912 |
Logic errors that do not depend on stream state should throw instead of invoke callback and emit error.
Refs: #31818
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes