Skip to content

Use jsg::JsArrayBufferView and remove cached length/offset in byob options - #6932

Open
jasnell wants to merge 2 commits into
mainfrom
jasnell/byob-use-jsarraybufferview
Open

Use jsg::JsArrayBufferView and remove cached length/offset in byob options#6932
jasnell wants to merge 2 commits into
mainfrom
jasnell/byob-use-jsarraybufferview

Conversation

@jasnell

@jasnell jasnell commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

…tions

The ByobOptions were using a cache length/offset making it risky when resizable/transfered ArrayBuffers were used. Harden it more by not caching the length/offset and switching to JsArrayBufferView

@jasnell
jasnell requested review from erikcorry and guybedford August 7, 2026 19:39
@jasnell
jasnell requested review from a team as code owners August 7, 2026 19:39
@ask-bonk

ask-bonk Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@jasnell
jasnell force-pushed the jasnell/byob-use-jsarraybufferview branch from d51ceca to c1fffc5 Compare August 7, 2026 20:28
@codspeed-hq

This comment was marked as low quality.

…tions

The `ByobOptions` were using a cache length/offset making it risky
when resizable/transfered ArrayBuffers were used. Harden it more
by not caching the length/offset and switching to JsArrayBufferView

Signed-off-by: James M Snell <jsnell@cloudflare.com>
@jasnell
jasnell force-pushed the jasnell/byob-use-jsarraybufferview branch from c1fffc5 to 8bf8672 Compare August 7, 2026 23:09
Appears to be related to a test harness / sidecar
issue to investigate. Only flaking on mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant