Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
always add a trap instruction after a throw
Tail call and dead code optimizations can cause code after a throw to be eliminated, which confuses findUnwindTarget because it doesn't know what code is throwing the exception. So we need at least one instruction to follow the call to the throw_ thunk. Previously, we only added such an instruction when we knew the throw was the last instruction in the bytecode, but it turns out there are other cases where it is needed, including certain try/finally situations.
- Loading branch information