mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 06:31:32 +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;
|
unwind_state = ¤t;
|
||||||
|
|
||||||
unwinding_setjmp(current.stack, unwind_payload, (void *)¤t);
|
unwinding_setjmp(current.stack, unwind_payload, (void *)¤t);
|
||||||
|
|
||||||
|
unwind_state = current.prev;
|
||||||
if (current.exception) {
|
if (current.exception) {
|
||||||
throw *current.exception;
|
throw *current.exception;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user