mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 08:11:41 +00:00
- 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.