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
Enabling with-js-error attaches fresh Error to all exceptions, and gives one ability to extract backtrace from JS error object via caml_js_error_of_exception. It's not exported from the jsoo API currently, and needs to be declared as an extern:
Enabling
with-js-error
attaches freshError
to all exceptions, and gives one ability to extract backtrace from JS error object viacaml_js_error_of_exception
. It's not exported from the jsoo API currently, and needs to be declared as an extern:I've used it like this in Lwt async exception hook to log js backtrace when unhandled exception happens:
Would be awesome to have
caml_js_error_of_exception
exposed in public API and have this way to get backtraces documented.The text was updated successfully, but these errors were encountered: