Open Eswcvlad opened 1 month ago
I assume the solution here is to update the spec to match the grammar and implementation?
Either that, or make leading zeros not work in grammar and implementation.
No strong opinions on either. Personally I lean towards the latter a tiny bit because of potential octal confusion, but this is pretty minor in the grand scheme of things.
It looks like in the implementation it allows number literals to have leading zeros (i.e.
09
results in9
). This is valid per the grammar in the spec, but it doesn't match the description:as leading zeros are explicitly prohibited in JSON:
I kind of bumped on this with the
_localDate
from the tests, as in my case it causes a JSON parsing error.