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

Rick Waldron waldron.rick at gmail.com
Mon Aug 4 11:05:09 PDT 2014


On Mon, Aug 4, 2014 at 9:55 AM, Jason Orendorff <jason.orendorff at gmail.com>
wrote:

> On Mon, Aug 4, 2014 at 11:43 AM, Mark S. Miller <erights at google.com>
> wrote:
> > Isn't the early error required only for strict code?
>
> Legacy octal integer literals are banned altogether in strict code. We
> implement that and have had no trouble with it.
>
> We're talking about something different here, legacy *decimal* integer
> literals starting with 0 and containing 8 or 9. As far as I know, no
> version of ES has ever permitted this kind of nonsense, but supporting
> it is apparently required for Web compatibility. (One more great
> reason to write all your code under "use strict".)
>
> Boris and I would like B.1.1 to be changed to match the horrible reality.
>

I've started the Sept meeting agenda with this item:
https://github.com/tc39/agendas/blob/master/2014/09.md


Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140804/ea323154/attachment.html>


More information about the es-discuss mailing list