mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-09 20:33:10 +08:00
In TypeScript, Object.values over a checked-dynamic value whose result is only iterated with for-of, indexed, or passed to every, some, findIndex, forEach, join or reduce now returns a native vector of the checked values. The program never observes the array itself, so the checked-dynamic array and, for for-of, the dynamic iterator protocol are skipped. Typed records fill the vector through their record ops table and plain data objects from their entries in own-key order. Other uses, and JavaScript files, keep the checked-dynamic array.