WebAssembly.Table
.prototype
プロパティは WebAssembly.Table()
コンストラクタのプロトタイプを表します。
WebAssembly.Table.prototype のプロパティ属性 |
|
---|---|
書込可能 | 不可 |
列挙可能 | 不可 |
設定可能 | 不可 |
説明
全ての WebAssembly.Table
インスタンスは Table.prototype
を継承します。WebAssembly.Table()
コンストラクタのプロトタイプオブジェクトは全ての WebAssembly.Table
インスタンスに影響するように変更可能です。
プロパティ
Table.prototype.constructor
- このオブジェクトのインスタンスを生成した関数を返します。デフォルトでは
WebAssembly.Table()
コンストラクタです。 Table.prototype.length
- テーブルの長さを返します。すなわち、要素数です。
-
メソッド
Table.prototype.get()
- アクセサ関数。インデックスから格納された要素を取得します。
Table.prototype.grow()
- 指定した要素数で Table インスタンスを拡張します。
Table.prototype.set()
- 指定したインデックスに要素を格納します。
仕様
仕様 | 策定状況 | コメント |
---|---|---|
WebAssembly JavaScript Interface Table の定義 |
草案 | 初回ドラフト定義 |
ブラウザ実装状況
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.
No compatibility data found. Please contribute data for "javascript.builtins.WebAssembly.Table.prototype" (depth: 1) to the MDN compatibility data repository.