Back to Content

WebAssembly table instructions

files/en-us/webassembly/reference/table/index.md

latest1.0 KB
Original Source

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

{{Specifications}}

Browser compatibility

{{Compat}}