This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The WebAssembly.Table
.prototype
property represents the prototype for the WebAssembly.Table()
constructor.
Property attributes of WebAssembly.Table.prototype |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
Description
All WebAssembly.Table
instances inherit from Table.prototype
. The prototype object of the WebAssembly.Table()
constructor can be modified to affect all WebAssembly.Table
instances.
Properties
Table.prototype.constructor
- Returns the function that created this object's instance. By default this is the
WebAssembly.Table()
constructor. Table.prototype.length
- Returns the length of the table, i.e. the number of references stored in the table.
-
Methods
Table.prototype.get()
- Accessor function — gets a reference stored at a given index.
Table.prototype.grow()
- Increases the size of the Table instance by a specified number of references.
Table.prototype.set()
- Mutates a reference stored at a given index to a different value.
Specifications
Specification | Status | Comment |
---|---|---|
WebAssembly JavaScript Interface The definition of 'Table' in that specification. |
Working Draft | Initial draft definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | Server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support 57 | Edge Full support 16 | Firefox
Full support
52
| IE No support No | Opera Full support 44 | Safari Full support 11 | WebView Android Full support 57 | Chrome Android Full support 57 | Edge Mobile
Full support
Yes
| Firefox Android
Full support
52
| Opera Android ? | Safari iOS Full support 11 | Samsung Internet Android Full support 7.0 | nodejs Full support 8.0.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- See implementation notes.
- See implementation notes.
- User must explicitly enable this feature.
- User must explicitly enable this feature.
See also
Document Tags and Contributors
Tags:
Contributors to this page:
fscholz,
chrisdavidmills
Last updated by:
fscholz,