mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 02:19:56 -06:00
Declaration binding instantiation reserves an upper bound of what a script's, eval's or function's variables and function declarations add to the heap before making them, and each declaration and parameter takes a unit of fuel. A long declaration list now ends with the heap limit without growing the estimate past it. Realm::set_limits recomputes when the next collection runs, so a lowered heap limit applies to the next run instead of after the old threshold. ToNumber skips the same white space and line terminators as the lexer, so U+180E is no longer white space in a numeric string.