Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec "hosts cannot mutate" #42

Closed
bakkot opened this issue Feb 19, 2025 · 2 comments
Closed

spec "hosts cannot mutate" #42

bakkot opened this issue Feb 19, 2025 · 2 comments

Comments

@bakkot
Copy link

bakkot commented Feb 19, 2025

The essential invariants mean that a nonconfigurable-nonwritable property cannot change once observed, but strictly speaking a host could modify the values in an immutable buffer before they're observed (or if they're observed via the methods on a DataView, to which the essential invariants do not apply).

Per plenary today we should prohibit that, probably by a normative sentence along the lines of "Hosts are not permitted to modify the contents of an immutable ArrayBuffer, even if its contents have not yet been observed by a TypedArray".

@gibson042
Copy link
Collaborator

Was this fixed by #44 ("The contents of an immutable ArrayBuffer's Data Block are constrained to be permanently stable, and may not be modified by either ECMAScript code or by other activities inside an implementation or observable by it.")?

@bakkot
Copy link
Author

bakkot commented Feb 20, 2025

Yup.

@bakkot bakkot closed this as completed Feb 20, 2025
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

No branches or pull requests

2 participants