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

Editorial: simplify CloneArrayBuffer AO#85

Open
jugglinmike wants to merge 1 commit intotc39:masterfrom
bocoup:simplify-clone-array-buffer
Open

Editorial: simplify CloneArrayBuffer AO#85
jugglinmike wants to merge 1 commit intotc39:masterfrom
bocoup:simplify-clone-array-buffer

Conversation

@jugglinmike
Copy link
Contributor

In ECMA262 today, the CloneArrayBuffer abstract operation has two call
sites. Only one of the two provides a variable value for the final
parameter; the other provides a fixed value (namely, the well-known
intrinsic, %ArrayBuffer%). The "Resizable ArrayBuffer" proposal removes
the first call site, obviating the need for the parameter.

Simplify the CloneArrayBuffer abstract operation by removing the final
parameter and referencing %ArrayBuffer% directly. Update the only
remaining call site as appropriate.

In ECMA262 today, the CloneArrayBuffer abstract operation has two call
sites. Only one of the two provides a variable value for the final
parameter; the other provides a fixed value (namely, the well-known
intrinsic, %ArrayBuffer%). The "Resizable ArrayBuffer" proposal removes
the first call site, obviating the need for the parameter.

Simplify the CloneArrayBuffer abstract operation by removing the final
parameter and referencing %ArrayBuffer% directly. Update the only
remaining call site as appropriate.
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

Comments