-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream: writable don't throw multiple callback error #30614
stream: writable don't throw multiple callback error #30614
Conversation
Align ERR_MULTIPLE_CALLBACK in Writable with the rest of error handling as well as how the error is implemented in Transform.
80813ce
to
e5c3e85
Compare
Can you fix the test filename (test-stream-writable-callback-twice copy.js)? |
@lpinca: Yep, sorry. I'll try to be a bit more diligent. |
@Trott: I believe this can land? |
It needs at least one more TSC approval as it is semver-major. cc: @nodejs/tsc |
Ah, sorry. I thought @lpinca was TSC. My mistake. |
CITGM: https://ci.nodejs.org/view/All/job/citgm-smoker/2102/ (queued) |
@Trott: This has 2 TSC approvals and should be able to land? Anything in the CITGM? |
CITGM looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Align ERR_MULTIPLE_CALLBACK in Writable with the rest of error handling as well as how the error is implemented in Transform. PR-URL: #30614 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Landed in e902fad |
Align ERR_MULTIPLE_CALLBACK in Writable with the rest of error handling as well as how the error is implemented in Transform.
I've just basically copied the
Transform
test and made sureWritable
matches it.Throwing here is dangerous and can lead to unnecessary unhandled exception.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes