-
Notifications
You must be signed in to change notification settings - Fork 16
Close sync iterables when they yield rejected promises #49
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
Comments
It actually doesn't need any changes to the spec: Specifically, the However, the explainer does indeed need to be updated. Also tests should be updated (or written). |
See #49. No spec update is needed as per #49 (comment).
Adds built-ins/Array/fromAsync/sync-iterable-with-rejecting-thenable-closes.js. This is related to tc39/ecma262#1849 and tc39/ecma262#2600. This closes tc39/proposal-array-from-async#49. Renames built-ins/Array/fromAsync/sync-iterable-with-thenable-element-rejects.js to built-ins/Array/fromAsync/sync-iterable-with-rejecting-thenable-closes.js for consistency with the new test.
A test262 pull request is pending (tc39/test262#4450). @bakkot: I see a “Note about changed behavior of Array.fromAsync after landing #2600” item in the 2025-04 plenary agenda. Is there anything I need to do on my end regarding this agenda item? |
I had genuinely forgotten I'd added that! But no, nothing from you; that item is just to inform engines that this change to |
Issue to change MDN article on Array.fromAsync and |
Previously,
for await
did not close sync iterables when they yield rejected promises (tc39/ecma262#1849):Code example
A month ago, the editors merged tc39/ecma262#2600 into the language. Now,
for await
closes sync iterables when they yield rejected promises. Array.fromAsync needs to change to do the same. See #39.The text was updated successfully, but these errors were encountered: