mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-28 04:27:10 +00:00
fix: correct module parameter in instruction limit exception handling
This commit is contained in:
parent
56526e9776
commit
76c14489c5
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue
Block a user