Closed Eswcvlad closed 5 months ago
If you call fromCodePoint with a value outside of the code point range, like fromCodePoint(-1) or fromCodePoint(1114112), it throws the original RangeError from JS String.fromCodePoint instead of being wrapped in something like TypeError.
fromCodePoint
fromCodePoint(-1)
fromCodePoint(1114112)
String.fromCodePoint
If you call
fromCodePoint
with a value outside of the code point range, likefromCodePoint(-1)
orfromCodePoint(1114112)
, it throws the original RangeError from JSString.fromCodePoint
instead of being wrapped in something like TypeError.