Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't throw OOB exception for detached typed array #208

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

bnoordhuis
Copy link
Contributor

a[42] = 1 where a is a detached typed array should not throw but Object.defineProperty() still should. Add a check and a flag that distinguishes between the two cases.

`a[42] = 1` where a is a detached typed array should not throw but
`Object.defineProperty()` still should. Add a check and a flag that
distinguishes between the two cases.
@bnoordhuis bnoordhuis merged commit 8baafc4 into quickjs-ng:master Dec 12, 2023
@bnoordhuis bnoordhuis deleted the detached-ta-prop-set branch December 12, 2023 22:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants