mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 14:46:03 +00:00
A finally block that break or continue leaves no longer keeps the saved site of the exception it ran for. A Jump now removes the sites at or above the stack's length, as a return already does, so a collection after the stack grows back over that slot does not root and count the old code. New tests in crates/js/src/host_tests.rs: an error passed on by a finally block that collects garbage under a 1 MiB heap is reported at its throw; the saved site keeps direct eval code live through a collection; a host abort inside a finally block leaves no saved site; and break, continue and return out of a finally block drop the site.