Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Normative: Correct buffer limit checks in TypedArray.p.copyWithin #126

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

anba
Copy link
Contributor

@anba anba commented Jul 6, 2023

fromByteIndex and toByteIndex are both absolute offsets into the ArrayBuffer, so it's necessary to add byteOffset to bufferByteLen. bufferByteLen no longer seems a good name choice after adding byteOffset, therefore it's also renamed to bufferByteLimit.

`fromByteIndex` and `toByteIndex` are both absolute offsets into the
ArrayBuffer, so it's necessary to add `byteOffset` to `bufferByteLen`.
`bufferByteLen` no longer seems a good name choice after adding
`byteOffset`, therefore it's also renamed to `bufferByteLimit`.
@syg syg merged commit 4d6f85e into tc39:master Jul 7, 2023
@syg
Copy link
Collaborator

syg commented Jul 7, 2023

Oops, obviously a bug, thanks!

syg added a commit to syg/ecma262 that referenced this pull request Jul 7, 2023
syg added a commit to syg/ecma262 that referenced this pull request Jul 7, 2023
syg added a commit to syg/ecma262 that referenced this pull request Jul 27, 2023
syg added a commit to syg/ecma262 that referenced this pull request Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants