pietron icon indicating copy to clipboard operation
pietron copied to clipboard

String.fromCodePoint fails when the input is negative

Open sozysozbot opened this issue 2 years ago • 0 comments

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: invalid_code_point

In my opinion, invalid code points qualify as "operations which cannot be performed", and hence should be ignored.

sozysozbot avatar Apr 04 '22 18:04 sozysozbot