mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
A fresh array literal wrapped in parentheses or `satisfies` on the right side of a write to a member of a typed view of the global object (`g.cache ??= ([])`, `g.cache ||= [] satisfies number[]`) is now built as the declared native array too, so typed reads return the same array. globalViewSlot walks up through those wrappers to the write's right operand and answers it, and the slot type comes from that operand's contextual type.