WebAssembly table instructions

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since November 2021.

>

This set of pages details the table instructions available in Wasm to create and manipulate tables.

Note: Equivalent functionality is available to JavaScript via the WebAssembly.Table API.

Instructions

table.fill

Sets a range of table elements to the same value.

table.get

Retrieves the reference stored at a particular table index.

table.grow

Increases the size of the table by a specified number of elements.

table.set

Changes the value stored in a particular table element.

table.size

Returns the current size of the table.

Specifications

Specification
Unknown specification>
# table-instructions>

Browser compatibility