mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-04 08:04:37 +08:00
An unchecked element read of a tuple array (`rows[i].length` with `rows: [number, string][]`) answers the element's optional value, and the computed `.length` path discarded it, so a read past the end printed the tuple's arity. It now holds the receiver and throws Node's TypeError, "Cannot read properties of undefined (reading 'length')", when the element is missing, before answering the arity. The corpus program tuple-length-computed.ts covers a missing element read directly and through a field holding the array.