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

Editorial: Replace single use of MakeIdempotentArrayBufferByteLengthGetter in DataView #124

Closed
wants to merge 1 commit into from

Conversation

anba
Copy link
Contributor

@anba anba commented Jul 5, 2023

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
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.

2 participants