Skip to content
JS
JavaScript error

RangeError

The JavaScript exception "Invalid code point" occurs when NaN values, negative Integers (-1), non-Integers (5.4), or values larger than 0x10FFFF (1114111) are used with String.fromCodePoint().

Reference entryJavaScriptFetched
RangeError: Invalid code point -1 (V8-based)
As listed by MDN Web Docs
RangeError: -1 is not a valid code point (Firefox)
As listed by MDN Web Docs
RangeError: Arguments contain a value that is out of range of code points (Safari)
As listed by MDN Web Docs
Category
RangeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.