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

Handle negative zero typed array indices correctly #212

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

bnoordhuis
Copy link
Contributor

ta["-0"] = 42 is a thing and not just any thing but a decidedly weird thing: it completes successful, sets no property, but still evaluates the value for side effects.

`ta["-0"] = 42` is a thing and not just any thing but a decidedly weird
thing: it completes successful, sets no property, but still evaluates
the value for side effects.
Copy link
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

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

🤯

@bnoordhuis bnoordhuis merged commit b51b510 into quickjs-ng:master Dec 14, 2023
@bnoordhuis bnoordhuis deleted the ta-neg-zero-index branch December 14, 2023 10:12
# 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