mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
- A JavaScript generator whose inferred return is `any` (it delegates to itself) is a generator with checked-dynamic channels. - for await over a checked-dynamic value: a compiled async generator, the value's Symbol.asyncIterator result, or its synchronous iterator with awaited values; break and throws close it through an awaited return(). A value that is not iterable throws V8's TypeError. - yield* in async generators delegates through the same protocol and completes with the delegate's return value. The runtime part is a new unit, scr_dyn_for_await.c, linked only by programs that use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>