fix: correct module parameter in instruction limit exception handling

This commit is contained in:
Alix ANNERAUD 2025-03-18 19:58:45 +01:00
parent 56526e9776
commit 76c14489c5

View File

@ -104,7 +104,7 @@ typedef float64 CellType_F64;
#if WASM_INSTRUCTION_METERING != 0
#define CHECK_INSTRUCTION_LIMIT() \
if (instructions_left == 0) { \
wasm_set_exception(module_inst, "instruction limit exceeded"); \
wasm_set_exception(module, "instruction limit exceeded"); \
goto got_exception; \
} \
else if (instructions_left > 0) \