Référence des erreurs JavaScript
Errare ECMAScript est… Vous trouverez ci-après une liste d'erreurs causées par le moteur JavaScript. Ces erreurs peuvent aider à déboguer certains problèmes mais leur signification n'est pas toujours claire. Chacune de ces pages fournit donc des explications et informations supplémentaires à propos de ces erreurs.
D'un point de vue technique, chaque erreur est un objet Error et possède une propriété name (son nom) et une propriété message.
Liste d'erreurs
- Error: Permission denied to access property "x"
 - InternalError: too much recursion
 - RangeError: argument is not a valid code point
 - RangeError: BigInt division by zero
 - RangeError: BigInt negative exponent
 - RangeError: invalid array length
 - RangeError: invalid date
 - RangeError: precision is out of range
 - RangeError: radix must be an integer
 - RangeError: repeat count must be less than infinity
 - RangeError: repeat count must be non-negative
 - RangeError: x can't be converted to BigInt because it isn't an integer
 - ReferenceError: "x" is not defined
 - ReferenceError: assignment to undeclared variable "x"
 - ReferenceError: can't access lexical declaration 'X' before initialization
 - ReferenceError: deprecated caller or arguments usage
 - ReferenceError: invalid assignment left-hand side
 - SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated
 - SyntaxError: "use strict" not allowed in function with "x" parameter
 - SyntaxError: "x" is a reserved identifier
 - SyntaxError: a declaration in the head of a for-of loop can't have an initializer
 - SyntaxError: applying the 'delete' operator to an unqualified name is deprecated
 - SyntaxError: cannot use `??` unparenthesized within `||` and `&&` expressions
 - SyntaxError: for-in loop head declarations may not have initializers
 - SyntaxError: function statement requires a name
 - SyntaxError: identifier starts immediately after numeric literal
 - SyntaxError: illegal character
 - SyntaxError: invalid BigInt syntax
 - SyntaxError: invalid regular expression flag "x"
 - SyntaxError: JSON.parse: bad parsing
 - SyntaxError: missing : after property id
 - SyntaxError: missing ) after argument list
 - SyntaxError: missing ) after condition
 - SyntaxError: missing ] after element list
 - SyntaxError: missing } after function body
 - SyntaxError: missing } after property list
 - SyntaxError: missing = in const declaration
 - SyntaxError: missing formal parameter
 - SyntaxError: missing name after . operator
 - SyntaxError: missing variable name
 - SyntaxError: redeclaration of formal parameter "x"
 - SyntaxError: return not in function
 - SyntaxError: Unexpected '#' used outside of class body
 - SyntaxError: Unexpected token
 - SyntaxError: unparenthesized unary expression can't appear on the left-hand side of '**'
 - SyntaxError: unterminated string literal
 - SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
 - TypeError: 'x' is not iterable
 - TypeError: "x" has no properties
 - TypeError: "x" is (not) "y"
 - TypeError: "x" is not a constructor
 - TypeError: "x" is not a function
 - TypeError: "x" is not a non-null object
 - TypeError: "x" is read-only
 - TypeError: can't assign to property "x" on "y": not an object
 - TypeError: can't convert BigInt to number
 - TypeError: can't convert x to BigInt
 - TypeError: can't define property "x": "obj" is not extensible
 - TypeError: can't delete non-configurable array element
 - TypeError: can't redefine non-configurable property "x"
 - TypeError: cyclic object value
 - TypeError: invalid 'in' operand "x"
 - TypeError: invalid 'instanceof' operand 'x'
 - TypeError: invalid Array.prototype.sort argument
 - TypeError: invalid assignment to const "x"
 - TypeError: More arguments needed
 - TypeError: property "x" is non-configurable and can't be deleted
 - TypeError: Reduce of empty array with no initial value
 - TypeError: setting a property that has only a getter
 - TypeError: X.prototype.y called on incompatible type
 - URIError: malformed URI sequence
 - Warning: -file- is being assigned a //# sourceMappingURL, but already has one
 - Warning: unreachable code after return statement
 
Voir aussi
- Qu'est-ce qui a cloché ? Diagnostiquer un problème JavaScript : un tutoriel introductif pour réparer les erreurs JavaScript