aboutsummaryrefslogtreecommitdiff
path: root/files/fr/conflicting/web/javascript/reference/global_objects/evalerror/index.html
blob: f45678a623c98ea8ab0fabcf96801399b0d3f7ea (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
title: EvalError.prototype
slug: conflicting/Web/JavaScript/Reference/Global_Objects/EvalError
tags:
  - Error
  - EvalError
  - JavaScript
  - Propriété
  - Reference
translation_of: Web/JavaScript/Reference/Global_Objects/EvalError
translation_of_original: Web/JavaScript/Reference/Global_Objects/EvalError/prototype
original_slug: Web/JavaScript/Reference/Objets_globaux/EvalError/prototype
---
<div>{{JSRef}}</div>

<p>La propriété <code><strong>EvalError.prototype</strong></code> représente le prototype du constructeur {{jsxref("EvalError")}}.</p>

<div>{{js_property_attributes(0,0,0)}}</div>

<h2 id="Description">Description</h2>

<p>Chacune des instances de {{jsxref("EvalError")}} hérite de {{jsxref("EvalError.prototype")}}. On peut utiliser le prototype pour ajouter des propriétés ou des méthodes à toutes les instances.</p>

<h2 id="Propriétés">Propriétés</h2>

<dl>
 <dt><code>EvalError.prototype.constructor</code></dt>
 <dd>Définit la fonction qui crée une instance basée sur le prototype.</dd>
 <dt>{{jsxref("Error.prototype.message", "EvalError.prototype.message")}}</dt>
 <dd>Un message décrivant l'erreur. Bien que la spécification ECMA-262 définit que <code>EvalError</code> doit fournir une propriété <code>message</code> propre à l'objet, l'implémentation de <a href="/fr/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a> fait qu'il hérite de {{jsxref("Error.prototype.message")}}.</dd>
 <dt>{{jsxref("Error.prototype.name", "EvalError.prototype.name")}}</dt>
 <dd>Un nom d'erreur. Propriété héritée de {{jsxref("Error")}}.</dd>
 <dt>{{jsxref("Error.prototype.fileName", "EvalError.prototype.fileName")}}</dt>
 <dd>Un chemin vers le fichier qui a provoqué l'erreur. Propriété héritée de {{jsxref("Error")}}.</dd>
 <dt>{{jsxref("Error.prototype.lineNumber", "EvalError.prototype.lineNumber")}}</dt>
 <dd>Le numéro de la ligne du fichier qui a provoqué l'erreur. Propriété héritée de {{jsxref("Error")}}.</dd>
 <dt>{{jsxref("Error.prototype.columnNumber", "EvalError.prototype.columnNumber")}}</dt>
 <dd>Le numéro de la colonne dans la ligne du fichier qui a provoqué l'erreur. Propriété héritée de {{jsxref("Error")}}.</dd>
 <dt>{{jsxref("Error.prototype.stack", "EvalError.prototype.stack")}}</dt>
 <dd>Pile d'appels. Propriété héritée de {{jsxref("Error")}}.</dd>
</dl>

<h2 id="Méthodes">Méthodes</h2>

<p>Bien que l'objet prototype <code>EvalError</code> ne possède pas de propriété propre, les instances de {{jsxref("EvalError")}} héritent de certaines méthodes via la chaîne de prototypes.</p>

<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('ES3')}}</td>
   <td>{{Spec2('ES3')}}</td>
   <td>Définition initiale.</td>
  </tr>
  <tr>
   <td>{{SpecName('ES5.1', '#sec-15.11.7.6', 'NativeError.prototype')}}</td>
   <td>{{Spec2('ES5.1')}}</td>
   <td>Défini comme <code><em>NativeError</em>.prototype</code>.</td>
  </tr>
  <tr>
   <td>{{SpecName('ES6', '#sec-nativeerror.prototype', 'NativeError.prototype')}}</td>
   <td>{{Spec2('ES6')}}</td>
   <td>Défini comme <code><em>NativeError</em>.prototype</code>.</td>
  </tr>
  <tr>
   <td>{{SpecName('ESDraft', '#sec-nativeerror.prototype', 'NativeError.prototype')}}</td>
   <td>{{Spec2('ESDraft')}}</td>
   <td>Défini comme <code><em>NativeError</em>.prototype</code>.</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>

<p>{{Compat("javascript.builtins.EvalError")}}</p>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li>{{jsxref("Error.prototype")}}</li>
 <li>{{jsxref("Function.prototype")}}</li>
</ul>