fix(templates/wasm): anyfunc should be funcref nowadays in .wat

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2023-04-06 14:26:44 +03:00
parent 6129076e97
commit 61c2e980a2

View File

@ -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_{{.}}