mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
JavaScript file-scope object literals are stored as checked-dynamic objects. An array literal holding one, directly or in a nested literal, was built with a static element type, so the element was a copy: arr[1] === marked was false and writes through the array missed the original. Such array literals now build as checked-dynamic arrays, a file-scope binding initialized with one stores it unchanged, and an object literal whose property is a nested literal holding one builds as a checked-dynamic object.