mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 17:02:03 -06:00
A collection counted each property or binding at a fixed 64 bytes and never counted the name's own buffer. Once the string that produced a long name became garbage, the name kept its buffer alive while the estimate dropped it, so a script could hold megabytes of names past the heap limit. trace_object and trace_env now add each name's buffer, counting a buffer that a flat string value or another name shares once.