Invoked by `#[plugin_fn]` expansion when a user fn returns `Err(_)`.
(e: Error)
| 81 | |
| 82 | /// Invoked by `#[plugin_fn]` expansion when a user fn returns `Err(_)`. |
| 83 | pub fn stash_error(e: Error) { |
| 84 | let kind = e.kind(); |
| 85 | let msg = e.message().to_string(); |
| 86 | unsafe { super::edge_throw(kind, msg.as_ptr(), msg.len() as u32); } |
| 87 | } |
| 88 | |
| 89 | /// Host-side argv stager; allocations leak until the WASM instance is dropped. |
| 90 | #[unsafe(no_mangle)] |