Break in nested try/catch/finally cause multiple panics #1900
Labels
bug
Something isn't working
execution
Issues or PRs related to code execution
help wanted
Extra attention is needed
vm
Issues and PRs related to the Boa Virtual Machine.
Milestone
Describe the bug
Several panic variants caused by breaks in nested try/catch/finally. I have lumped them together as they appear to be caused by similar issues, but I have not yet identified a cause.
To Reproduce
This JavaScript crashes with
thread 'main' panicked at 'stack was empty', boa_engine/src/vm/mod.rs:145:36
This JavaScript crashes with
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 25344', boa_engine/src/vm/mod.rs:396:39
This JavaScript crashes with
thread 'main' panicked at 'attempt to subtract with overflow', boa_engine/src/vm/call_frame.rs:64:9
Expected behavior
None of these should panic.
The text was updated successfully, but these errors were encountered: