Skip to content

How to handle exceptions from emscripten_run_script? #17225

Answered by kripken
tuket asked this question in Q&A
Discussion options

You must be logged in to vote

The first option should work, if you do it on the JS that is sent to emscripten_run_script. If not, perhaps there is a typo in the try-catch or elsewhere? (that would throw before it runs the code) Or perhaps it throws in the catch body? (do all thrown err have the property err.message..?)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tuket
Comment options

Answer selected by tuket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants