--- title: InternalError slug: Web/JavaScript/Reference/Global_Objects/InternalError tags: - Error - InternalError - JavaScript - Reference translation_of: Web/JavaScript/Reference/Global_Objects/InternalError original_slug: Web/JavaScript/Reference/Objets_globaux/InternalError ---
L'objet InternalError indique qu'une erreur liée au moteur JavaScript s'est produite. Par exemple "InternalError : Niveau de récursion trop important".
new InternalError([message[, fileName[, lineNumber]]])
messagefileName {{Non-standard_inline}}lineNumber {{Non-standard_inline}}Une exception InternalError est levée à chaque fois qu'il se produit une erreur interne au moteur JavaScript.
Le plus souvent, cette exception se produit lorsque quelque chose atteint un niveau trop élévé. Par exemple :
InternalError.L'objet global InternalError ne contient pas de méthode propre. En revanche, il hérite de certaines méthodes via sa chaîne de prototypes.
InternalErrorCet objet ne fait partie d'aucune spécification.
{{Compat("javascript.builtins.InternalError")}}