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
- Warning: -file- is being assigned a //# sourceMappingURL, but already has one
- TypeError: invalid Array.prototype.sort argument
- RangeError: radix must be an integer
- SyntaxError: invalid regular expression flag "x"
- SyntaxError: return not in function
- RangeError: BigInt division by zero
- RangeError: BigInt negative exponent
- TypeError: X.prototype.y called on incompatible type
- ReferenceError: can't access lexical declaration 'X' before initialization
- TypeError: can't assign to property "x" on "y": not an object
- RangeError: x can't be converted to BigInt because it isn't an integer
- 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: property "x" is non-configurable and can't be deleted
- TypeError: can't redefine non-configurable property "x"
- SyntaxError: cannot use `??` unparenthesized within `||` and `&&` expressions
- TypeError: cyclic object value
- SyntaxError: applying the 'delete' operator to an unqualified name is deprecated
- ReferenceError: deprecated caller or arguments usage
- SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated
- SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
- TypeError: setting a property that has only a getter
- SyntaxError: Unexpected '#' used outside of class body
- SyntaxError: identifier starts immediately after numeric literal
- SyntaxError: illegal character
- SyntaxError: invalid BigInt syntax
- RangeError: invalid array length
- ReferenceError: invalid assignment left-hand side
- TypeError: invalid assignment to const "x"
- RangeError: invalid date
- SyntaxError: for-in loop head declarations may not have initializers
- SyntaxError: a declaration in the head of a for-of loop can't have an initializer
- SyntaxError: JSON.parse: bad parsing
- URIError: malformed URI sequence
- SyntaxError: missing ] after element list
- SyntaxError: missing : after property id
- SyntaxError: missing } after function body
- SyntaxError: missing } after property list
- SyntaxError: missing formal parameter
- SyntaxError: missing = in const declaration
- SyntaxError: missing name after . operator
- SyntaxError: missing ) after argument list
- SyntaxError: missing ) after condition
- TypeError: More arguments needed
- RangeError: repeat count must be non-negative
- TypeError: "x" is not a non-null object
- TypeError: "x" has no properties
- SyntaxError: missing variable name
- TypeError: can't delete non-configurable array element
- TypeError: "x" is not a constructor
- TypeError: "x" is not a function
- RangeError: argument is not a valid code point
- ReferenceError: "x" is not defined
- RangeError: precision is out of range
- Error: Permission denied to access property "x"
- TypeError: "x" is read-only
- SyntaxError: redeclaration of formal parameter "x"
- TypeError: Reduce of empty array with no initial value
- SyntaxError: "x" is a reserved identifier
- RangeError: repeat count must be less than infinity
- Warning: unreachable code after return statement
- SyntaxError: "use strict" not allowed in function with "x" parameter
- SyntaxError: unterminated string literal
- InternalError: too much recursion
- ReferenceError: assignment to undeclared variable "x"
- SyntaxError: Unexpected token
- TypeError: "x" is (not) "y"
- SyntaxError: function statement requires a name
- SyntaxError: unparenthesized unary expression can't appear on the left-hand side of '**'
- TypeError: invalid 'in' operand "x"
- TypeError: invalid 'instanceof' operand 'x'
- TypeError: 'x' is not iterable
Voir aussi
- Qu'est-ce qui a cloché ? Diagnostiquer un problème JavaScript : un tutoriel introductif pour réparer les erreurs JavaScript