-
Hi, Right now when there is an error in the JS code I get an exception, and the application can't continue. I would like to avoid that; the application should log the error and continue. I have tried different things:
But none of then seem to work. What should I do? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The first option should work, if you do it on the JS that is sent to |
Beta Was this translation helpful? Give feedback.
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 thrownerr
have the propertyerr.message
..?)