Files
vectorcraft/crates/js
dotCooCoo 05d45599dd JavaScript: heap stops leave no global name, and own elements hide prototype getters
- A script's global let and const names are added only after the room
  for them and the declarations is checked, so a run that stops at the
  heap limit leaves no uninitialized name behind and the same script
  runs once the limit is raised.
- Spread of an array with a length too long for an array literal throws
  RangeError at once when every prototype getter with an index name is
  hidden by an own property of the same name earlier in the chain. The
  scan takes one unit of fuel for each earlier object it looks in, and
  stops where the fuel runs out.
- A spread test now checks the heap total right after the limit stops
  the spread, before a later step could collect, and a larger limit
  lets the same spread complete.
2026-11-24 00:13:24 -08:00
..