mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
Compiler caches keyed by programs and lowering passes move onto the objects that own their lifetime, and the field-creation pass recognizes its own writes by their receiver temporaries. A source test keeps weak collections out of the compiler. Records and arrays that reach an untyped slot through a union now keep their identity, and empty object literals are keyed by their native object, so both work as WeakMap and WeakSet keys instead of failing at runtime.