Skip to content

improve Array's __set method #959

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

Merged
merged 4 commits into from
Nov 16, 2019
Merged

improve Array's __set method #959

merged 4 commits into from
Nov 16, 2019

Conversation

MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Nov 16, 2019

  • this will be more optimal
  • also previous approach allowed arr[-1] = x without throwing OOB trap which is wrong

@dcodeIO
Copy link
Member

dcodeIO commented Nov 16, 2019

also previous approach allowed arr[-1] = x without throwing OOB trap which is wrong

Good catch!

@MaxGraey MaxGraey requested a review from dcodeIO November 16, 2019 21:14
@dcodeIO dcodeIO merged commit eee0307 into AssemblyScript:master Nov 16, 2019
@dcodeIO
Copy link
Member

dcodeIO commented Nov 16, 2019

Great, thanks!

@MaxGraey MaxGraey deleted the improve-array-set branch November 16, 2019 22:23
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