c-api: Fix wasmtime_func_call_unchecked to communicate all errors (#5262)
Change the return value of this function to a `wasmtime_error_t*` instead of the prior `wasm_trap_t*`. This is a leftover from #5149. Closes #5257
This commit is contained in:
@@ -241,10 +241,11 @@ WASM_API_EXTERN wasmtime_error_t *wasmtime_func_call(
|
||||
* faster than that function, but the tradeoff is that embeddings must uphold
|
||||
* more invariants rather than relying on Wasmtime to check them for you.
|
||||
*/
|
||||
WASM_API_EXTERN wasm_trap_t *wasmtime_func_call_unchecked(
|
||||
WASM_API_EXTERN wasmtime_error_t *wasmtime_func_call_unchecked(
|
||||
wasmtime_context_t *store,
|
||||
const wasmtime_func_t *func,
|
||||
wasmtime_val_raw_t *args_and_results
|
||||
wasmtime_val_raw_t *args_and_results,
|
||||
wasm_trap_t **trap
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user