adobe / json-formula

Query language for JSON documents
http://opensource.adobe.com/json-formula/
Apache License 2.0
19 stars 8 forks source link

`fromCodePoint` throws non-json-formula error on invalid input #139

Closed Eswcvlad closed 5 months ago

Eswcvlad commented 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.