Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Update spec to coerce TypedArray indexes with ToNumber(). #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update spec to coerce TypedArray indexes with ToNumber(). #337

wants to merge 1 commit into from

Conversation

stoklund
Copy link

Use the same algorithm as DataView
objects
:

  • Coerce the index argument to a number with ToNumber().
  • Throw a RangeError if the index is not an integer.

Also add a missing '_' to the nearby elementLength computation.

Use the same algorithm as [DataView
objects](https://tc39.github.io/ecma262/#sec-getviewvalue):

- Coerce the index argument to a number with ToNumber().
- Throw a RangeError if the index is not an integer.

Also add a missing '_' to the nearby elementLength computation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant