--- title: WebAssembly.Table.prototype slug: conflicting/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table tags: - Experimental - JavaScript - Propriété - Prototype - Reference - WebAssembly translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Table translation_of_original: Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/prototype original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/Table/prototype ---
{{JSRef}} {{SeeCompatTable}}

La propriété WebAssembly.Table.prototype représente le prototype du constructeur {{jsxref("WebAssembly.Table()")}}.

{{js_property_attributes(0, 0, 0)}}

Description

Toutes les instances de {{jsxref("WebAssembly.Table")}} héritent de Table.prototype. Le prototype du constructeur {{jsxref("WebAssembly.Table()")}} peut être modifié afin de modifier le comportement de toutes les instances {{jsxref( "WebAssembly.Table")}}.

Propriétés

Table.prototype.constructor
Renvoie la fonction qui a créé l'instance de l'objet. Par défaut, c'est le constructeur {{jsxref("WebAssembly.Table()")}}.
{{jsxref("WebAssembly/Table/length","Table.prototype.length")}}
Renvoie la taille du tableau, c'est-à-dire le nombre de références enregistrées dans le tableau.

Méthodes

{{jsxref("WebAssembly/Table/get","Table.prototype.get()")}}
Une fonction accesseur qui permet d'obtenir une référence à partir d'une position dans le tableau.
{{jsxref("WebAssembly/Table/grow","Table.prototype.grow()")}}
Cette méthode permet d'augmenter la taille de l'instance de Table d'un nombre donné de référence.
{{jsxref("WebAssembly/Table/set","Table.prototype.set()")}}
Cette méthode permet de changer une référence située à une position donnée dans le tableau.

Spécifications

Spécification État Commentaires
{{SpecName('WebAssembly JS', '#webassemblytable-objects', 'Table')}} {{Spec2('WebAssembly JS')}} Brouillon de définition initiale pour WebAssembly.

Compatibilité des navigateurs

{{Compat("javascript.builtins.WebAssembly.Table.prototype")}}

Voir aussi