Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 2d55e4d

Browse files
committed
Add EVMC_WASM_TRAP error code
1 parent 30f1a90 commit 2d55e4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/evmc/evmc.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ enum evmc_status_code
280280
*/
281281
EVMC_WASM_UNREACHABLE_INSTRUCTION = 14,
282282

283+
/**
284+
* A WebAssembly trap has been hit during execution. This can be for many
285+
* reasons, including division by zero, validation errors, etc.
286+
*/
287+
EVMC_WASM_TRAP = 15,
288+
283289
/** EVM implementation generic internal error. */
284290
EVMC_INTERNAL_ERROR = -1,
285291

0 commit comments

Comments
 (0)