--- title: Promise.prototype slug: Web/JavaScript/Referencia/Objetos_globales/Promise/prototype tags: - JavaScript - Promesa - Propiedad translation_of: Web/JavaScript/Reference/Global_Objects/Promise translation_of_original: Web/JavaScript/Reference/Global_Objects/Promise/prototype ---
La propiedad Promise.prototype representa el prototipo del constructor de {{jsxref("Promise")}}
Las instancias de {{jsxref("Promise")}} heredan de {{jsxref("Promise.prototype")}}. Se puede usar el objeto prototipo del constructor para agregar propiedades o métodos a todas las instancias de Promise.
Promise.prototype.constructoralCumplirse o alRechazarse no es una función).| Especificación | Estatus | Comentario |
|---|---|---|
| {{SpecName('ES6', '#sec-promise.prototype', 'Promise.prototype')}} | {{Spec2('ES6')}} | Definición inicial. |
| {{SpecName('ESDraft', '#sec-promise.prototype', 'Promise.prototype')}} | {{Spec2('ESDraft')}} |
To contribute to this compatibility data, please write a pull request against this file: https://github.com/mdn/browser-compat-data/blob/master/javascript/promise.json.
{{Compat("javascript/promise","Promise.prototype")}}