Early error on '0' followed by '8' or '9' in numeric literals does not seem to be web-compatible

Mathias Bynens mathias at qiwi.be
Tue Aug 5 08:08:14 PDT 2014


On 5 Aug 2014, at 16:56, Alex Kocharin <alex at kocharin.ru> wrote:

> What about allowing one-digit numbers with leading zeroes? "07" equals to 7 no matter whether it parsed as an octal or as a decimal. Thus, no harm there.

That wouldn’t solve the problem. Consider e.g. `01234567` (i.e. `342391`) vs. `01234568` (which must equal `1234568` for compatibility with existing code).


More information about the es-discuss mailing list