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
const__wbg_import_function_foo_target=foo;export__wbg_import_function_foo=function(){try{returnfoo();}catch(e){console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:",e);throwe;}};
This will help us debug when imported JS functions throw and we don't catch the errors.
The text was updated successfully, but these errors were encountered:
This commit updates the `--debug` output of `wasm-bindgen` from the CLI
to catch all JS exceptions from imported functions, log such, and then
rethrow. It's hoped that this can be used when necessary to learn more
information about thrown exceptions and where an uncaught exception
could be causing issues with Rust code.
Closesrustwasm#1176
When we are in debug mode, this
should emit JS glue code something like this:
This will help us debug when imported JS functions throw and we don't catch the errors.
The text was updated successfully, but these errors were encountered: