Enso developers would like to implement a panic hook that writes to console.error, but also uses an application-specific API to write the panic info to the console running the program as an electron app. The latter is straightforward enough, but console_error_panic_hook's formatting addresses browser subtleties, and we'd prefer not to duplicate that.
This PR exposes panic formatting in the API, for use from custom panic hooks.
Enso developers would like to implement a panic hook that writes to
console.error
, but also uses an application-specific API to write the panic info to the console running the program as an electron app. The latter is straightforward enough, butconsole_error_panic_hook
's formatting addresses browser subtleties, and we'd prefer not to duplicate that.This PR exposes panic formatting in the API, for use from custom panic hooks.