I am looking to compile some C++ code that makes heavy usage of exceptions into a wasm target. Unfortunately, most browsers don't have Webassembly Exception Handling turned on (I believe only Chrome supports it behind the flag chrome://flags#enable-webassembly), and there's a tremendous performance hit in how emscripten wraps exceptions into a javascript try/catch. We've noticed about a 2x performance hit when the flag is turned on or off.
I believe the short-answer to this is 'no', but I was wondering if there are known approaches to translate C++ code-with-exceptions to C++ code that doesn't use exceptions at all (not even in a parent wrapper) without manually translating it.