WebAssembly.Table
class
class WebAssembly.TableThe WebAssembly.Table() object is a JavaScript wrapper object — an array-like structure
representing a WebAssembly Table, which stores function references. A table created by
JavaScript or in WebAssembly code will be accessible and mutable from both JavaScript
and WebAssembly.
Constructors
constructor
new Table(descriptor: TableDescriptor)Creates a new Table object.
Properties
length
readonly length: numberReturns the length of the table, i.e. the number of elements.
Methods
get
get(index: number): Function | nullAccessor function — gets the element stored at a given index.
grow
grow(delta: number): numberIncreases the size of the Table instance by a specified number of elements.
set
set(index: number, value: Function | null): voidSets an element stored at a given index to a given value.