From 42c2e79192c3e18c7e230a8a6dbf842e93065328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Tue, 14 Jul 2026 20:36:34 -0600 Subject: [PATCH] don't use table for funcref --- examples/cont-stack/cont-stack.wat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/cont-stack/cont-stack.wat b/examples/cont-stack/cont-stack.wat index 5a2d56f..0a0499d 100644 --- a/examples/cont-stack/cont-stack.wat +++ b/examples/cont-stack/cont-stack.wat @@ -3,9 +3,10 @@ (func $print (import "guppy" "print") (param i32)) ;; declare a table with a reference to $halt in it. idk why, but this -is ;; necessary to use funcrefs lmfao. - (table 2 funcref) - (elem (i32.const 0) $halt) + ;; is necessary to use funcrefs lmfao. + ;; (table 2 funcref) + ;; (elem (i32.const 0) $halt) + (elem declare funcref (ref.func $halt)) ;; an array of return continuations. (type $cont (func (param i32)))