You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
335 B

(module
(table $t 0 funcref)
(func (export "size") (result i32)
(table.size $t)
)
(func $f (export "grow-by-1") (result i32)
(table.grow $t (ref.func $f) (i32.const 1))
)
)
(assert_return (invoke "size") (i32.const 0))
(assert_return (invoke "grow-by-1") (i32.const 0))
(assert_return (invoke "size") (i32.const 1))