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
It turns out Emscripten EH hasn't supported dynamic exception specification all along. For example, the program prints "Incorrect", which it shouldn't:
It supports throw() correctly, but for other types within throw(..), Emscripten EH currently allows all types to be thrown.
We are working on the new wasm EH based on the the wasm spec (https://github.com/WebAssembly/exception-handling), but this currently has the same limitation: it also only supports throw() and not other throw(..).
For both Emscripten EH (the current EH) and the new wasm EH (currently experimental and new browser support is necessary) the exception spec except for throw() has never worked, and we don't have a short-term plan to fix this in near future. Patches are welcome though.