-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
I've been trying to use wasm exception handling with a recent version of emscripten.
% ./upstream/emscripten/emcc --version
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.0.0 (3fd52e107187b8a169bb04a02b9f982c8a075205)
The old EH spec introduced a new thing called a "Tag" here, and the newer one has the same concept but calls it an "exception" here, but it essentially seems the same.
When I build with -fwasm-exceptions, the resulting module has a tag section, which is good. But if I inspect the exports, I don't see the exported tag/exception entry from here. This export is important to be able to catch a wasm exception in JS, and get access to the exception pointer. Without this, I don't see any way to get access to the C++ exception contents.
Is this expected, that the exception export is missing? What is required to add it?
Metadata
Metadata
Assignees
Labels
No labels