(table...)
Create a table of function references. These are used with the call_indirect instruction. This can be used to handle callback functions.

Syntax

(table $label elementCount itemType)

Parameters

$label Optional
There is one default table per module that has no label. You can have multiple tables but they all need to be given a label.
elementCount
The number of elements the table contains.
itemType
The type of elements the table contains. At the moment this is always the text "funcref".

Examples

;; Create default table of function references
(table 4 funcref)
;; Create quick sort table for callback function
(table $quickSort 1 funcref)