-
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
test: [http] throw on arrays for Http2ServerResponse.end #33146
Conversation
@rexagod Can you explain this one? I’m already getting a type error thrown for the test here, just not the same one. If this is about supporting the same types for the |
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.
HTTP/1 changes look good to me, but I think the HTTP/2 changes aren”t necessary because HTTP/2 is already doing the right thing here (but correct me if I’m wrong)
The main objective of this PR was to throw an error when an array is passed, which currently, is not thrown and no error event is emitted for. I'm not sure what you mean by HTTP2 is already doing the right thing here? |
@rexagod But I’m already getting this error on master with your test:
i.e. writing |
Done. It seems my local version was outdated. |
Seems like this needs a test case? |
A PR that incorporated my changes was merged recently. So this PR is just for adding the test. |
@rexagod this seem to fail on our CI. Please take another look. |
Refs: nodejs#29829 fixup fixup: add Uint8Array fixup: add Uint8Array to checks fixup: add Uint8Array to checks
Refs: nodejs#29829 PR-URL: nodejs#33146 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in de35c03 |
Refs: #29829 PR-URL: #33146 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
Refs: #29829 PR-URL: #33146 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
Refs: #29829 PR-URL: #33146 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
Refs: #29829
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes