Add EVMC_WASM_TRAP error code

This commit is contained in:
Alex Beregszaszi 2018-08-18 21:46:26 +01:00
parent f10e23f42d
commit 7ebbbb043f
1 changed files with 6 additions and 0 deletions

View File

@ -286,6 +286,12 @@ enum evmc_status_code
*/
EVMC_WASM_UNREACHABLE_INSTRUCTION = 15,
/**
* A WebAssembly trap has been hit during execution. This can be for many
* reasons, including division by zero, validation errors, etc.
*/
EVMC_WASM_TRAP = 16,
/** EVM implementation generic internal error. */
EVMC_INTERNAL_ERROR = -1,