Skip to content

Commit

Permalink
Update flags for getting exception messages in docs (#18538)
Browse files Browse the repository at this point in the history
`-lembind` is now preferred over `--bind`.

Add `-sEXPORT_EXCEPTION_HANDLING_HELPERS` to export the required symbols, which are now multiple and can vary based on exception handling backend.
  • Loading branch information
thewtex authored Jan 16, 2023
1 parent 05b1c63 commit 73ab1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/source/docs/porting/Debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ returns the ``what`` function call result.
emscripten::function("getExceptionMessage", &getExceptionMessage);
};
This requires using the linker flag ``--bind``.
This requires using the linker flags ``-lembind -sEXPORT_EXCEPTION_HANDLING_HELPERS``.
Once such a function has been created, exception handling code in javascript
can call it when receiving an exception from WASM. Here the function is used
in order to log the thrown exception.
Expand Down

0 comments on commit 73ab1c5

Please sign in to comment.