mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
An element write whose index the checker types as a number but whose storage may hold undefined (a for...of variable over an array that may have holes) converted the index with ToNumber only on plain-array writes. Typed-array writes, compound and update writes, element assignments used as values and element targets in destructuring assignment now convert it the same way, as the element reads already do, instead of refusing it as a non-number key. Fixes #1622 Co-authored-by: ejc3 <1694850+ejc3@users.noreply.github.com>