mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-09 10:22:28 +08:00
The int32 field analysis keeps every field of a class whose instances reach checked-dynamic code as a double when the program contains a dynamic helper call that may store a property through a live view. The dynamic operator helpers counted as such calls, so a single `+`, `*`, `|`, `++` or unary `+` with a dynamic operand kept the fields of every exposed class as doubles. dyn.add, dyn.arithmetic, dyn.bitwise, dyn.toNumeric and dyn.toNumberCoerce convert their operands with the ToPrimitive and coercion helpers of dyn.compare, dyn.numberConstructor and dyn.toStringCoerce, which are already on the read-only list, and return a new number, string or bigint. dyn.increment steps the number or bigint dyn.toNumeric returns. All six are now on the read-only list.