Skip to content

Clarify immutability#24

Merged
styfle merged 2 commits intotc39:mainfrom
eemeli:more-immutable
Sep 17, 2025
Merged

Clarify immutability#24
styfle merged 2 commits intotc39:mainfrom
eemeli:more-immutable

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented Sep 17, 2025

It took me a few iterations of reading the spec to figure out that bytes are indeed immutable, and not mutable, as implied by the last note of HostLoadImportedModule. Similarly, in CreateBytesModule it's not immediately obvious that the "immutable" descriptor applies to SharedArrayBuffer as well.

As an unrelated bit of cleanup, the spec metadata is updated to match the current stage of the proposal.

@eemeli eemeli mentioned this pull request Sep 17, 2025
28 tasks
@github-actions
Copy link
Copy Markdown

The rendered spec for this PR is available at https://tc39.es/proposal-import-bytes/pr/24.

Copy link
Copy Markdown
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

cc @jasnell @nicolo-ribaudo @bakkot

@styfle styfle merged commit 78b199b into tc39:main Sep 17, 2025
1 check passed
@eemeli eemeli deleted the more-immutable branch September 17, 2025 13:20
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