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()
.
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()
.
String.fromCodePoint()
throws this error when passed NaN
values, negative Integers (-1), non-Integers (5.4), or values larger than 0x10FFFF (1114111).
A code point is a value in the Unicode codespace; that is, the range of integers from 0
to 0x10FFFF
.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_valid_code_point