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

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

Open
stoklund wants to merge 1 commit intotc39:masterfrom
stoklund:spec-tonumber
Open

Update spec to coerce TypedArray indexes with ToNumber().#337
stoklund wants to merge 1 commit intotc39:masterfrom
stoklund:spec-tonumber

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