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

Editorial: Replace single use of MakeIdempotentArrayBufferByteLengthGetter in DataView - #124

Closed
anba wants to merge 1 commit into
tc39:masterfrom
anba:view-constructor-bytelength
Closed

Editorial: Replace single use of MakeIdempotentArrayBufferByteLengthGetter in DataView#124
anba wants to merge 1 commit into
tc39:masterfrom
anba:view-constructor-bytelength

Conversation

@anba

@anba anba commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

The MakeIdempotentArrayBufferByteLengthGetter getter is only used once, so it can be replaced with a direct call to
ArrayBufferByteLength.

…etter in DataView

The `MakeIdempotentArrayBufferByteLengthGetter` getter is only used
once, so it can be replaced with a direct call to
`ArrayBufferByteLength`.
@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