mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
Restore previous unwind_state.
This commit is contained in:
@ -44,6 +44,8 @@ void catch_unwind(std::function<void()> &&f) {
|
||||
unwind_state = ¤t;
|
||||
|
||||
unwinding_setjmp(current.stack, unwind_payload, (void *)¤t);
|
||||
|
||||
unwind_state = current.prev;
|
||||
if (current.exception) {
|
||||
throw *current.exception;
|
||||
}
|
||||
|
Reference in New Issue
Block a user