mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
A local that only holds exact integers or NaN, such as one assigned from an integer typed-array read, now keeps whether it is NaN beside its integer view. Its reads, and sums, differences and products of them, carry an i64 that holds the integer whenever the number is not NaN, so an index check or a counted loop's guard tests that integer and the ordered bit instead of converting the double back and checking that it is an exact integer.