Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Editorial: Remove duplicate IsViewOutOfBounds calls in DataView.prototype.byteLength #122

Closed
wants to merge 1 commit into from

Conversation

anba
Copy link
Contributor

@anba anba commented Jul 3, 2023

GetViewByteLength calls IsViewOutOfBounds as its first step, so it's not necessary to call IsViewOutOfBounds in
DataView.prototype.byteLength.

…type.byteLength

`GetViewByteLength` calls `IsViewOutOfBounds` as its first step, so it's
not necessary to call `IsViewOutOfBounds` in
`DataView.prototype.byteLength`.
@syg
Copy link
Collaborator

syg commented Jul 7, 2023

I've changed the idempotent getter machinery, since it's not very easy to read, in favor of a cached byte length approach in tc39/ecma262#3116, PTAL there.

@syg syg closed this Jul 7, 2023
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.

None yet

2 participants