Files
scriptc/tests
Chris Tate 81e2e35e64 Hold array and record elements whose serialization can call user code
JSON.stringify walked a dense native array through its borrowed storage
and wrote record fields borrowed from the record. When an element's own
serialization can run user code (it reaches an array that may hold
foreign elements, whose getters and toJSON run, or a class instance or
checked-dynamic value), that code could grow the array, reallocating the
storage the walk still read, or replace the field it was writing.

In programs that store foreign elements, such arrays now take the
general walk, which reads each index afresh and holds its element, and
such record fields are held across their write. Programs without
foreign elements compile as before.
2026-10-23 11:09:31 -05:00
..
…
2026-10-20 17:56:44 -05:00