From db74833b43015558a9bda72ba32ff511789d14c5 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 17 Mar 2026 14:35:49 -0700 Subject: [PATCH] Add a test for a null continuation in cont.bind --- test/core/stack-switching/cont.wast | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/core/stack-switching/cont.wast b/test/core/stack-switching/cont.wast index 21c3da32..78903963 100644 --- a/test/core/stack-switching/cont.wast +++ b/test/core/stack-switching/cont.wast @@ -129,6 +129,14 @@ ) (drop) ) + + (func (export "null-bind") + (drop + (cont.bind $k1 $k1 + (ref.null $k1) + ) + ) + ) ) (assert_suspension (invoke "unhandled-1") "unhandled") @@ -147,6 +155,7 @@ (assert_trap (invoke "null-resume") "null continuation reference") (assert_trap (invoke "null-new") "null function reference") +(assert_trap (invoke "null-bind") "null continuation reference") (assert_invalid (module