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

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
reference-types
Chrome – Full support
Chrome 96 (Release date: 2021-11-15)
footnote Full support
Edge – Full support
Edge 96 (Release date: 2021-11-19)
footnote Full support
Firefox – Full support
Firefox 79 (Release date: 2020-07-28)
footnote Full support
Opera – Full support
Opera 82 (Release date: 2021-12-02)
footnote Full support
Safari – Full support
Safari 15.1 (Release date: 2021-10-25)
footnote Full support
Chrome Android – Full support
Chrome Android 96 (Release date: 2021-11-15)
footnote Full support
Firefox for Android – Full support
Firefox for Android 79 (Release date: 2020-07-28)
footnote Full support
Opera Android – Full support
Opera Android 67 (Release date: 2022-01-31)
footnote Full support
Safari on iOS – Full support
Safari on iOS 15.1 (Release date: 2021-10-25)
footnote Full support
Samsung Internet – Full support
Samsung Internet 17 (Release date: 2022-05-04)
footnote Full support
WebView Android – Full support
WebView Android 96 (Release date: 2021-11-15)
footnote Full support
WebView on iOS – Full support
WebView on iOS 15.1 (Release date: 2021-10-25)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support