test: [http] throw on arrays for Http2ServerResponse.end#33146
test: [http] throw on arrays for Http2ServerResponse.end#33146rexagod wants to merge 9 commits intonodejs:masterfrom
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 |
addaleax
left a comment
There was a problem hiding this comment.
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 <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in de35c03 |
Refs: #29829
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes