blob: 582a6d21e8e6c6704bf461d4ec2918d32f304277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
---
title: WebAssembly.Global.prototype
slug: conflicting/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global
tags:
- JavaScript
- Propriété
- Prototype
- WebAssembly
translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Global
translation_of_original: Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/prototype
original_slug: Web/JavaScript/Reference/Objets_globaux/WebAssembly/Global/prototype
---
<div>{{JSRef}}</div>
<p>La propriété <code><strong>WebAssembly.Global</strong></code><strong><code>.prototype</code></strong> représente le prototype du constructeur {{jsxref("WebAssembly.Global()")}}.</p>
<div>{{js_property_attributes(0, 0, 0)}}</div>
<h2 id="Description">Description</h2>
<p>Toutes les instances de {{jsxref("WebAssembly.Global")}} héritent de <code>Global.prototype</code>. L'objet prototype du constructeur {{jsxref("WebAssembly.Global()")}} peut être modifié afin d'avoir un impact sur l'ensemble des instances {{jsxref( "WebAssembly.Global")}}.</p>
<h2 id="Propriétés">Propriétés</h2>
<dl>
<dt><code>Global.prototype.constructor</code></dt>
<dd>Cette propriété renvoie la fonction qui a créé l'instance de l'objet. Par défaut, c'est le constructeur {{jsxref("WebAssembly.Global()")}}.</dd>
<dt><code>Global.prototype[@@toStringTag]</code></dt>
<dd>La valeur initiale de la propriété <code><a href="/fr/docs/Web/JavaScript/Reference/Objets_globaux/Symbol/toStringTag">@@toStringTag</a></code> est la chaîne de caractères <code>"WebAssembly.Global"</code>.</dd>
<dt><code>Global.prototype.value</code></dt>
<dd>La valeur contenue à l'intérieur de la variable globale. Cette propriété peut être utilisée afin de modifier et d'accéder à la valeur globale.</dd>
</dl>
<h2 id="Méthodes">Méthodes</h2>
<dl>
<dt><code>Global.prototype.valueOf()</code></dt>
<dd>Une méthode qui renvoie la valeur contenue dans la variable globale.</dd>
</dl>
<h2 id="Spécifications">Spécifications</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Spécification</th>
<th scope="col">État</th>
<th scope="col">Commentaires</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('WebAssembly JS', '#globals', 'WebAssembly.Global()')}}</td>
<td>{{Spec2('WebAssembly JS')}}</td>
<td>Brouillon pour la définition initiale.</td>
</tr>
</tbody>
</table>
<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
<p>{{Compat("javascript.builtins.WebAssembly.Global.prototype")}}</p>
<h2 id="Voir_aussi">Voir aussi</h2>
<ul>
<li>{{jsxref("WebAssembly.Global()")}}</li>
</ul>
|