summaryrefslogtreecommitdiff
path: root/src/tools/wasm-interp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-interp.c')
-rw-r--r--src/tools/wasm-interp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/wasm-interp.c b/src/tools/wasm-interp.c
index 433979c3..0dc66d3d 100644
--- a/src/tools/wasm-interp.c
+++ b/src/tools/wasm-interp.c
@@ -1484,12 +1484,13 @@ static WasmResult on_assert_exhaustion_command(Context* ctx,
ctx->total++;
WasmResult result = run_action(ctx, action, &iresult, &results, RUN_QUIET);
if (WASM_SUCCEEDED(result)) {
- if (iresult == WASM_INTERPRETER_TRAP_CALL_STACK_EXHAUSTED) {
- ctx->passed++;
- } else {
- print_command_error(ctx, "expected call stack exhaustion");
- result = WASM_ERROR;
- }
+ if (iresult == WASM_INTERPRETER_TRAP_CALL_STACK_EXHAUSTED ||
+ iresult == WASM_INTERPRETER_TRAP_VALUE_STACK_EXHAUSTED) {
+ ctx->passed++;
+ } else {
+ print_command_error(ctx, "expected call stack exhaustion");
+ result = WASM_ERROR;
+ }
}
wasm_destroy_interpreter_typed_value_vector(ctx->allocator, &results);