table.set
Pops a function reference off the stack and sets it in a table.
Parameters
$label Optional
If there is no label then the default table is used. If used then this points to a (table...)
object.
Stack In
i32 |
The index in the table to put the function reference. |
funcref |
A reference to a function. |
Examples
(table 4 funcref)
(func $test
(local $function funcref)
i32.const 0
table.get
local.set $function
i32.const 1
local.get $function
table.set
)
(table $testTable 6 funcref)
(func $test
(local $function funcref)
i32.const 0
table.get $testTable
local.set $function
i32.const 1
local.get $function
table.set $testTable
)