From e98d98ea427bde26371fc34e2b607787b09a3c04 Mon Sep 17 00:00:00 2001 From: Thibaud Michaud Date: Fri, 13 Mar 2026 14:08:35 +0100 Subject: [PATCH] test: use drop instead of unreachable This function is expected to trap, so the unreachable could result in a false positive if the compiled test does not check the trap reason. See comment: https://github.com/WebAssembly/stack-switching/pull/138#discussion_r2893145422 --- test/core/stack-switching/cont.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/stack-switching/cont.wast b/test/core/stack-switching/cont.wast index 2c13948b..21c3da32 100644 --- a/test/core/stack-switching/cont.wast +++ b/test/core/stack-switching/cont.wast @@ -127,7 +127,7 @@ (cont.new $k1 (ref.null $f1) ) - (unreachable) + (drop) ) )