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

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

Closed
anba wants to merge 1 commit into
tc39:masterfrom
anba:view-duplicate-read-length
Closed

Editorial: Remove duplicate IsViewOutOfBounds calls in DataView.prototype.byteLength#122
anba wants to merge 1 commit into
tc39:masterfrom
anba:view-duplicate-read-length

Conversation

@anba

@anba anba commented Jul 3, 2023

Copy link
Copy Markdown
Contributor

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

syg commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator

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.

2 participants