mirror of
https://github.com/janet-lang/janet
synced 2025-04-05 14:56:55 +00:00

janet_vm_return_reg should only be set when janet_continue is called. Otherwise, a panic may dump it's error message in the wrong place, resulting in undefined behavior (often showing the last return value or worse, segfaulting).