mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 21:14:51 +00:00
A new property or binding now adds its name's code units to the heap estimate when it is inserted, so names declared by eval or Function source move the estimate toward a collection. Function parameter and catch bindings no longer count their entries twice. A host function's error message reserves its size in the heap before the error object is made, so a message larger than the heap ends the run with the heap limit. The Function constructor sums its arguments' lengths and checks the source limit before flattening or copying any of them, and builds the source from their code units, so a lone surrogate in an argument is kept.