| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Ensure writevSync() validates every chunk before handing the batch to the push queue. Invalid chunks now throw ERR_INVALID_ARG_TYPE without leaving data readable from the failed write. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
Ensure writevSync() validates every chunk before handing the batch to the push queue. Invalid chunks now throw ERR_INVALID_ARG_TYPE without leaving data readable from the failed write. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64300 Fixes: #64299 Reviewed-By: James M Snell <jasnell@gmail.com>
Ensure writevSync() validates every chunk before handing the batch to the push queue. Invalid chunks now throw ERR_INVALID_ARG_TYPE without leaving data readable from the failed write. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64300 Fixes: #64299 Reviewed-By: James M Snell <jasnell@gmail.com>
Ensure writevSync() validates every chunk before handing the batch to the push queue. Invalid chunks now throw ERR_INVALID_ARG_TYPE without leaving data readable from the failed write. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64300 Fixes: #64299 Reviewed-By: James M Snell <jasnell@gmail.com>
Ensure writevSync() validates every chunk before handing the batch to the push queue. Invalid chunks now throw ERR_INVALID_ARG_TYPE without leaving data readable from the failed write. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64300 Fixes: #64299 Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes: #64299
stream/iter now validates all writevSync() chunks before queueing a
batch. Previously, invalid chunks such as [1] could be queued first and
then throw from the queue’s byte-length accounting path, leaving invalid data
visible to the readable side.
This updates the shared chunk fast path to only skip conversion when every
entry is already a Uint8Array, and adds regression coverage that verifies
writevSync([1]) throws ERR_INVALID_ARG_TYPE without queueing data.
Assisted-by: openai:gpt-5.5