Rust/wasm32, sending GET request from panic hook

  1. Is there a reliable way, as a Rust program is dying (inside the panic_hook) to send out a final AJAX POST request as it's dying ?

  2. Basically, as a program is dying, in addition to dumping out all the info to the browser's js console, I want the final stack trace to be sent via AJAX/POST to a URL of my choosing too.

Just call some javascript imported function and write it to do the job.
var e = new Error(); e.stack looks easy to get a trace, no idea how useful string will be.