blob: 273549b78935f0f8ff44ebe01551ef168f6346dc (
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
|
---
title: GeneratorFunction.prototype
slug: conflicting/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
tags:
- ECMAScript 2015
- GeneratorFunction
- Iterator
- JavaScript
- Propriété
- Prototype
- Reference
translation_of: Web/JavaScript/Reference/Global_Objects/GeneratorFunction
translation_of_original: Web/JavaScript/Reference/Global_Objects/GeneratorFunction/prototype
original_slug: Web/JavaScript/Reference/Objets_globaux/GeneratorFunction/prototype
---
<div>{{JSRef}}</div>
<p>La propriété <code><strong>GeneratorFunction.prototype</strong></code> représente le prototype de l'objet {{jsxref("GeneratorFunction")}}.</p>
<h2 id="Description">Description</h2>
<p>Les objets {{jsxref("GeneratorFunction")}} héritent de <code>GeneratorFunction.prototype</code>. <code>GeneratorFunction.prototype</code> ne peut pas être modifié.</p>
<h2 id="Propriétés">Propriétés</h2>
<dl>
<dt><code><strong>GeneratorFunction.constructor</strong></code></dt>
<dd>La valeur initiale correspond à {{jsxref("GeneratorFunction")}}.</dd>
<dt><code><strong>GeneratorFunction.prototype.prototype</strong></code></dt>
<dd>La valeur est <code>%GeneratorPrototype%</code>.</dd>
</dl>
<h2 id="Spécifications">Spécifications</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Spécification</th>
<th scope="col">Statut</th>
<th scope="col">Commentaires</th>
</tr>
<tr>
<td>{{SpecName('ES2015', '#sec-generatorfunction.prototype', 'GeneratorFunction.prototype')}}</td>
<td>{{Spec2('ES2015')}}</td>
<td>Définition initiale.</td>
</tr>
<tr>
<td>{{SpecName('ESDraft', '#sec-generatorfunction.prototype', 'GeneratorFunction.prototype')}}</td>
<td>{{Spec2('ESDraft')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
<p>{{Compat("javascript.builtins.GeneratorFunction.prototype")}}</p>
<h2 id="Voir_aussi">Voir aussi</h2>
<ul>
<li>{{jsxref("GeneratorFunction")}}</li>
<li>{{jsxref("Function")}}</li>
</ul>
|