Skip to content
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

Missing tests for next caching in array-destructuring? #3937

Open
gibson042 opened this issue Oct 3, 2023 · 1 comment
Open

Missing tests for next caching in array-destructuring? #3937

gibson042 opened this issue Oct 3, 2023 · 1 comment

Comments

@gibson042
Copy link
Contributor

gibson042 commented Oct 3, 2023

Statements like const [] = iterable and const [x, y] = iterable should get an iterator from iterable and cache its next method, resulting in exactly one observable read thereof. But we may be missing coverage for this, as evidenced by Moddable-OpenSource/moddable#1223 (unless the coverage is present and I've just missed it).

Related: tc39/ecma262#1021

@bakkot
Copy link
Contributor

bakkot commented Oct 18, 2023

See also #1362

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

2 participants