Skip to content

Fix ArrayBuffer immutable-method semantics#1538

Merged
saghul merged 1 commit into
masterfrom
fix/immutable-ab-methods
Jun 21, 2026
Merged

Fix ArrayBuffer immutable-method semantics#1538
saghul merged 1 commit into
masterfrom
fix/immutable-ab-methods

Conversation

@saghul

@saghul saghul commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

sliceToImmutable throws RangeError (not TypeError) when a resizable source
shrinks below the resolved end during argument coercion; transferToImmutable
coerces newLength before checking detachability so valueOf side effects are observed.

@saghul saghul force-pushed the fix/immutable-ab-methods branch from 36c143d to 3e769eb Compare June 20, 2026 21:05
@saghul saghul mentioned this pull request Jun 20, 2026
sliceToImmutable throws RangeError (not TypeError) when a resizable source
shrinks below the resolved end during argument coercion; transferToImmutable
coerces newLength before checking detachability so valueOf side effects are observed.
@saghul saghul force-pushed the fix/immutable-ab-methods branch from 3e769eb to b1293c7 Compare June 20, 2026 21:57
@saghul saghul merged commit eb52863 into master Jun 21, 2026
@saghul saghul deleted the fix/immutable-ab-methods branch June 21, 2026 10:14
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