mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
&, |, ^, <<, >> and >>> accept boolean operands, converted as ToNumber does (true 1, false 0), as JavaScript dependencies write them (async-sema's `isFn(pauseFn) ^ isFn(resumeFn)`). Hoisted JavaScript vars that may also hold undefined or null convert those to 0, which is what ToInt32 makes of NaN and 0. Number operands lower exactly as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>