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
This effectively removes `EXPORT_EXCEPTION_HANDLING_HELPERS` setting.
This marks the setting as deprecated not to crash users' builds right
away in case they are using it. Even though it still exists as a
deprecated setting, setting it to true will not change anything.
It used to export `getExceptionMessage` and a few more functions
(`in/decrementexceptionRefCount`), but after #26493,
`getExceptionMessage` is exported anyway when exceptions are used and
either `-sASSERTIONS` or `-sEXCEPTION_STACK_TRACES` is set, which are
set by default at `-O0`. For Wasm EH, the dependency is automatically
detected. For Emscripten EH, we had to add `getExceptionMessage` to deps
of `__cxa_throw`.
This adds `in/decrementexceptionRefCount` to deps of `__cxa_throw` (for
Emscripten EH) and `__throw_exception_with_stack_trace` (for Wasm EH)
and removes `EXPORT_EXCEPTION_HANDLING_HELPERS`. (You can use it but it
won't do anything additionally)
Copy file name to clipboardExpand all lines: site/source/docs/tools_reference/settings_reference.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1129,6 +1129,8 @@ manipulate the refcount manually to avoid memory leaks.
1129
1129
See test_EXPORT_EXCEPTION_HANDLING_HELPERS in test/test_core.py for an
1130
1130
example usage.
1131
1131
1132
+
.. note:: This setting is deprecated
1133
+
1132
1134
Default value: false
1133
1135
1134
1136
.. _exception_stack_traces:
@@ -3417,6 +3419,7 @@ these settings please open a bug (or reply to one of the existing bugs).
3417
3419
- ``LEGALIZE_JS_FFI``: to disable JS type legalization use `-sWASM_BIGINT` or `-sSTANDALONE_WASM`
3418
3420
- ``ASYNCIFY_EXPORTS``: please use JSPI_EXPORTS instead
3419
3421
- ``LINKABLE``: under consideration for removal (https://github.com/emscripten-core/emscripten/issues/25262)
3422
+
- ``EXPORT_EXCEPTION_HANDLING_HELPERS``: getExceptionMessage is automatically exported when ASSERTIONS or EXCEPTION_STACK_TRACES is 1 and throw is used
0 commit comments