From 8ee49a1abc1da48a52f12092db9709dd55e05b99 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 20 Jan 2026 10:47:34 -0700 Subject: [PATCH] update expected trap message in `passing-resources.wast` I'm preparing a Wasmtime PR which ensures that a thread and task is allocated every time a component is entered, regardless of whether the export is sync or async typed, sync or async lifted. Consequently, we get a slightly different trap in `passing-resources.wast` such that the passed handle is valid but not of the correct kind (i.e. it's a thread handle rather than a resource handle). --- test/async/passing-resources.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async/passing-resources.wast b/test/async/passing-resources.wast index b4c996df..91d70e9d 100644 --- a/test/async/passing-resources.wast +++ b/test/async/passing-resources.wast @@ -173,4 +173,4 @@ (func (export "fail-accessing-res1") (alias export $producer "fail-accessing-res1")) ) (assert_return (invoke "run") (u32.const 42)) -(assert_trap (invoke "fail-accessing-res1") "unknown handle index") +(assert_trap (invoke "fail-accessing-res1") "index is not a resource")