-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1761: feat(c-api) Implement the `traps` argument of `wasm_instance_new` r=Hywan a=Hywan # Description When running `Instance::new`, it can error with an `InstantiationError`. There is 2 scenarii: 1. Either it's a `InstantiationError::Link`. In this case, the `wasm_instance_new` function must return `NULL` and register the error in the Wasmer error registry. 2. Either it's a `InstantiationError::Start`. In this case, the `wasm_instance_new` function must return `NULL` and the error must be converted into a `wasm_trap_t`, which is stored in the `wasm_trap_t**` array. This array is initialized by `wasm_instance_new` itself. # Review - [x] Add a short description of the the change to the CHANGELOG.md file Fixes #1744. Co-authored-by: Ivan Enderlin <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters