mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
`Promise<void>.catch(() => undefined)` tripped the IR validator's bare-unitLit rule: the handler body lowered as a bare expression, and `undefined` has no standalone IR value. The handler's value is discarded, so lower the body as a statement — the same rule a discarded `undefined;` statement already follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>