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

Fix array indexing with hex literal #711

Merged
merged 2 commits into from Mar 10, 2020

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Mar 10, 2020

When string was indexed with non-integer value, the logic incorrectly expected that the target would be the prototype member (like 'indexOf'). Now checking that indexing is done correctly. Also tweaked hex literals to be pre-calculated as integers.

fixes #710

* detect literal hex strings as integers
@sebastienros sebastienros merged commit a81a881 into sebastienros:dev Mar 10, 2020
@lahma lahma deleted the bugs/hex-zero-index branch March 11, 2020 00:38
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.

Bug with js indexer, when index equals 0x0
2 participants