Skip to content

[editorial] Shared steps between toArray and Array.fromAsync #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
js-choi opened this issue Apr 14, 2025 · 0 comments
Open

[editorial] Shared steps between toArray and Array.fromAsync #28

js-choi opened this issue Apr 14, 2025 · 0 comments

Comments

@js-choi
Copy link

js-choi commented Apr 14, 2025

Array.fromAsync and AsyncIterator.prototype.toArray are similar, although Array.fromAsync will likely reach Stage 4 first.

Once Array.fromAsync lands in ecma262, it would be good to have it and AsyncIterator.prototype.toArray share the same steps via an abstract operation.

See tc39/proposal-array-from-async#23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant