Skip to content

Commit

Permalink
Normative: use ToIndex instead of ToInteger in ValidateAtomicAccess (c…
Browse files Browse the repository at this point in the history
…loses #807) (#811)
  • Loading branch information
syg authored and bterlson committed Feb 13, 2017
1 parent d65c54b commit 111c0a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34519,9 +34519,7 @@ <h1>ValidateAtomicAccess( _typedArray_, _requestIndex_ )</h1>
<p>The abstract operation ValidateAtomicAccess takes two arguments, _typedArray_ and _requestIndex_. It performs the following steps:</p>
<emu-alg>
1. Assert: _typedArray_ is an Object that has a [[ViewedArrayBuffer]] internal slot.
1. Let _numberIndex_ be ? ToNumber(_requestIndex_).
1. Let _accessIndex_ be ToInteger(_numberIndex_).
1. If _numberIndex_ &ne; _accessIndex_, throw a *RangeError* exception.
1. Let _accessIndex_ be ? ToIndex(_requestIndex_).
1. Let _length_ be _typedArray_.[[ArrayLength]].
1. If _accessIndex_ &lt; 0 or _accessIndex_ &ge; _length_, throw a *RangeError* exception.
1. Return _accessIndex_.
Expand Down

0 comments on commit 111c0a6

Please sign in to comment.