--- 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 ---
La propriété EvalError.prototype
représente le prototype du constructeur {{jsxref("EvalError")}}.
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.
EvalError.prototype.constructor
EvalError
doit fournir une propriété message
propre à l'objet, l'implémentation de SpiderMonkey fait qu'il hérite de {{jsxref("Error.prototype.message")}}.Bien que l'objet prototype EvalError
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.
Spécification | Statut | Commentaires |
---|---|---|
{{SpecName('ES3')}} | {{Spec2('ES3')}} | Définition initiale. |
{{SpecName('ES5.1', '#sec-15.11.7.6', 'NativeError.prototype')}} | {{Spec2('ES5.1')}} | Défini comme NativeError.prototype . |
{{SpecName('ES6', '#sec-nativeerror.prototype', 'NativeError.prototype')}} | {{Spec2('ES6')}} | Défini comme NativeError.prototype . |
{{SpecName('ESDraft', '#sec-nativeerror.prototype', 'NativeError.prototype')}} | {{Spec2('ESDraft')}} | Défini comme NativeError.prototype . |
{{Compat("javascript.builtins.EvalError")}}