don't use table for funcref
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user