Uh oh!
There was an error while loading. Please reload this page.
stream: use validateBuffer for BYOB reader view - #65046
Conversation
The same check is already spelled validateBuffer(view, 'view') in ReadableStreamBYOBRequest.respondWithNewView(), and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #65046 +/- ##
==========================================
- Coverage 90.30% 90.29% -0.01%
==========================================
Files 759 759 Lines 247612 247602 -10 Branches 46686 46681 -5 ==========================================
- Hits 223604 223579 -25 - Misses 15460 15462 +2 - Partials 8548 8561 +13
🚀 New features to boost your workflow:
|
greenheadHQ
commented
Aug 5, 2026
The |
nodejs-github-bot
commented
Aug 12, 2026
Commit Queue failed- Loading data for nodejs/node/pull/65046 ✔ Done loading data for nodejs/node/pull/65046 ----------------------------------- PR info ------------------------------------ Title stream: use validateBuffer for BYOB reader view (#65046) Author greenhead <shren0812@gmail.com> (@greenheadHQ) Branch greenheadHQ:readablestream-validate-buffer -> nodejs:main Labels author ready, needs-ci, commit-queue, web streams Commits 1 - stream: use validateBuffer for BYOB reader view Committers 1 - greenhead <shren0812@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Wed, 05 Aug 2026 12:51:50 GMT ✔ Approvals: 2 ✔ - Daeyeon Jeong (@daeyeon): https://github.com/nodejs/node/pull/65046#pullrequestreview-4891279202 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/65046#pullrequestreview-4892848785 ✔ Last GitHub CI successful ✘ No Jenkins CI runs detected -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/31602140325 |
@daeyeon It looks like the queue stopped because Jenkins CI hadn’t run yet. When you have a chance, could you help trigger the full CI? Thanks for looking into this! 🫡 |
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Aug 12, 2026
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Aug 13, 2026
Landed in 1d9d49c |
The same check is already spelled validateBuffer(view, 'view') in ReadableStreamBYOBRequest.respondWithNewView(), and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The same check is already spelled validateBuffer(view, 'view') in ReadableStreamBYOBRequest.respondWithNewView(), and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The same check is already spelled validateBuffer(view, 'view') in ReadableStreamBYOBRequest.respondWithNewView(), and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
ReadableStreamBYOBReader.prototype.read()open-codes the check thatvalidateBufferperforms, whileReadableStreamBYOBRequest.prototype.respondWithNewView()a few hundred lines above already callsvalidateBuffer(view, 'view')for the same argument. Both buildERR_INVALID_ARG_TYPEfrom the same name and type list, so the rejection is unchanged.No new test:
readable-byte-streams/general.any.jsalready coversread()with a non-view argument.