mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-31 07:23:06 +08:00
Typed-array element reads at an index that is not an integer in [0, length) now yield undefined instead of throwing a RangeError. The read is `number | undefined`, like ordinary array reads; numeric and truthiness consumers fuse back to the plain element read, which answers NaN for an invalid index without touching storage. The may-throw seed for typed reads is removed. Invalid writes stay ignored. The corpus pins reads in printing, comparison, arithmetic, defaulting, truthiness, bindings and templates, plus ignored writes, and a received worker message is checked to arrive unfrozen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>