pub fn panic_to_value(payload: Box<dyn Any + Send>) -> ValueExpand description
Convert a catch_unwind panic payload into the Value::Str shape
that transpiled catch (e) blocks expect. The transpiled code uses
this from the catch arm emitted by rewriteTryCatchAsync — kept in
the ccxt crate (rather than the test crate) so exchange files that
catch downstream panics (e.g. pacifica try { approveBuilderCode } catch { disable_builder_fee }) can use it without a test-crate dep.