From 61c2e980a29462b7f9d77c34533ef33581d1d98e Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Thu, 6 Apr 2023 14:26:44 +0300 Subject: [PATCH] fix(templates/wasm): anyfunc should be funcref nowadays in .wat --- templates/wasm/patch.wat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wasm/patch.wat b/templates/wasm/patch.wat index 44b3fff..d1c5813 100644 --- a/templates/wasm/patch.wat +++ b/templates/wasm/patch.wat @@ -136,7 +136,7 @@ ;; The opcode table jump table. This is constructed to only include the opcodes ;; that are used so that the jump table is as small as possible. ;;------------------------------------------------------------------------------- -(table {{.Instructions | len | add 1}} anyfunc) +(table {{.Instructions | len | add 1}} funcref) (elem (i32.const 1) ;; start the indices at 1, as 0 is reserved for advance {{- range .Instructions}} $su_op_{{.}}