feat(codemode): support bounded async iteration (#38040)

This commit is contained in:
Aiden Cline 2026-07-21 00:02:31 -05:00 committed by GitHub
commit 7111f93836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 154 additions and 8 deletions

View file

@ -70,7 +70,9 @@ ultimate source of truth.
- [x] `try`, `catch`, optional catch bindings, and `finally`.
- [x] `throw` with arbitrary values.
- [x] Labeled statements, labeled `break`, and labeled `continue`.
- [ ] `for await...of` and async iteration.
- [x] `for await...of` over the supported synchronous collections, awaiting each yielded CodeMode promise or plain
value before binding it. Custom sync/async iterator objects, `Symbol.asyncIterator`, and async generators remain
outside the supported subset.
## Functions and callbacks