mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
for-of over an iterable union read its array arm without checking that it had one, so iterating a `Set<number> | Generator<number, void, undefined>` crashed the compiler; a union without an array arm now runs the generator loop only. A generator with a non-void return channel adapted into a required Iterable<T> slot but not into an optional or nullable one, where the conversion failed with SC2003; the slot conversion now accepts iterable unions with undefined or null arms beside the iterable arms.