Skip to content

Mark TypedArray/ArrayBuffer byte-slice accessors unsafe - #737

Merged
richarddd merged 7 commits into
DelSkayn:masterfrom
richarddd:fix/typed-array-as-bytes-aliasing
Sep 3, 2026
Merged

Mark TypedArray/ArrayBuffer byte-slice accessors unsafe#737
richarddd merged 7 commits into
DelSkayn:masterfrom
richarddd:fix/typed-array-as-bytes-aliasing

Conversation

@richarddd

@richarddd richarddd commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Issue # (if available)

#736

Description of changes

Marks TypedArray/ArrayBuffer byte-slice accessors unsafe and removes the unsound safe AsRef<[T]> impls, since JS can mutate, detach, or reallocate the backing store while the returned slice is still borrowed.

Checklist

  • Added change to the changelog
  • Created unit tests for my feature if needed

richarddd and others added 7 commits July 24, 2026 22:10
This reverts commit bbb3397, reversing
changes made to 4ff7ce6.
… unsound AsRef<[T]> impls, since JS can mutate, detach, or reallocate the backing store while the returned slice is still borrowed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014wyAJu5o5oDoprkKkjwi72
@richarddd
richarddd merged commit 5e9a7ba into DelSkayn:master Sep 3, 2026
35 checks passed
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.

2 participants