From 7ebbbb043fa34ee5b7a9c8954885f02508c01efd Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 18 Aug 2018 21:46:26 +0100 Subject: [PATCH] Add EVMC_WASM_TRAP error code --- include/evmc/evmc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/evmc/evmc.h b/include/evmc/evmc.h index 44731d7d9..f74d93b04 100644 --- a/include/evmc/evmc.h +++ b/include/evmc/evmc.h @@ -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,