Skip to content

Commit

Permalink
Add EVMC_WASM_TRAP error code
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Aug 20, 2018
1 parent f10e23f commit 7ebbbb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 7ebbbb0

Please sign in to comment.