pietron
pietron copied to clipboard
String.fromCodePoint fails when the input is negative
While String.fromCodePoint
is handled in L341-345,
https://github.com/dnek/pietron/blob/f8ce860675b399078db3ac99bafb2c484c3ec4f6/src/debug.js#L341-L345
it is not handled in L249-251. https://github.com/dnek/pietron/blob/f8ce860675b399078db3ac99bafb2c484c3ec4f6/src/debug.js#L249-L251
This causes Pietron to fail:
In my opinion, invalid code points qualify as "operations which cannot be performed", and hence should be ignored.