You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the wasm32-unknown-unknown target has no support for unwinding, panic=abort is the only option.
Also, as far as I'm aware, there is currently no work being done to bring the exception handling proposal to Rust: rust-lang/rust#58874.
My question: is there some kind of strategy that can currently be used to abort WASM execution?
As far as I understand, panicking can leave behind a corrupted state, because Drop handlers are never called, which can be problematic for things like Rc for example. Currently panic simply emits a trap instruction, the browser then aborts the current function and throws an error in JS.
But any other functions running will continue, like promises or event handlers.
Can this be stopped somehow? Can the WASM module be invalidated somehow?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently the
wasm32-unknown-unknown
target has no support for unwinding,panic=abort
is the only option.Also, as far as I'm aware, there is currently no work being done to bring the exception handling proposal to Rust: rust-lang/rust#58874.
My question: is there some kind of strategy that can currently be used to abort WASM execution?
As far as I understand, panicking can leave behind a corrupted state, because
Drop
handlers are never called, which can be problematic for things likeRc
for example. Currentlypanic
simply emits a trap instruction, the browser then aborts the current function and throws an error in JS.But any other functions running will continue, like promises or event handlers.
Can this be stopped somehow? Can the WASM module be invalidated somehow?
Beta Was this translation helpful? Give feedback.
All reactions