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

Normative: use ToIndex instead of ToInteger in ValidateAtomicAccess #811

Merged
merged 1 commit into from
Feb 13, 2017

Conversation

syg
Copy link
Contributor

@syg syg commented Feb 9, 2017

Addresses #807

@bterlson
Copy link
Member

My belief is that this is simply fixing an editorial bug (resulting from changes to TAs happening in parallel with SAB work). Any objections to pulling this?

@syg
Copy link
Contributor Author

syg commented Feb 10, 2017

I'm assuming you're not asking for objections from me, since I opened the PR.

Context for Brian's belief: the SAB spec text was written at a time before TypedArray spec algorithms were changed from ToInteger to ToIndex. This instance of ToInteger in ValidateAtomicAccess is a holdover from that.

@lars-t-hansen
Copy link
Contributor

lars-t-hansen commented Feb 10, 2017

Needs test cases also.

Needs support in implementations. @binji @pizlonator @evilpie

Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1338449

@bakkot bakkot added the needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262 label Feb 10, 2017
@binji
Copy link

binji commented Feb 12, 2017

Thanks, Lars. Filed a v8 bug here: https://bugs.chromium.org/p/v8/issues/detail?id=5961

@bterlson bterlson merged commit 111c0a6 into tc39:master Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs test262 tests The proposal should specify how to test an implementation. Ideally via github.com/tc39/test262
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants