mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- lowerUnitComparison folds ===/!== against a union lacking the unit arm to the constant answer, both operand orders - a non-droppable operand still evaluates exactly once, riding a throwaway tag test - union-switch case null / case undefined take the unit-comparison lowering, so a lacking arm never matches - the unionEq fallback had coerced the literal through the stranded-arm trap, throwing where Node answers false - corpus 2490-2494: the find-miss repro, every strict and loose spelling, switch unit cases, effect preservation