I was wondering if there’s a way to disable exceptions in WebAssembly 2023?
(It seems like this option can’t be turned off.)
It feels like this might leave some performance on the table for developers who want to leverage the new WebAssembly features but don’t need error checking.
As the warning says, it’s not currently possible to fully disable them with Wasm23. You’re best adviced to check again in a future version but until then use “explicitly thrown” because the warning is unclear about whether it’s going to revert to “explicitly thrown” or “full exceptions”.
For our SAAS software package we have a similar feature request.
We would want to prevent our users from continuing after exceptions, like possible in the previous version of WebAssembly. This way users cannot continue with corrupted objects (or application) when the code exits an half executed/active stack.
This is particularly important as we do not want to save or allow editing of potentially corrupted objects, plus this allows us to restart the application and keep track of breaking errors more effectively.
Naturally we would like to enjoy the performance improvements and features wasm23 brings.