Early error on '0' followed by '8' or '9' in numeric literals does not seem to be web-compatible
allen at wirfs-brock.com
Mon Aug 4 17:41:54 PDT 2014
On Aug 4, 2014, at 9:55 AM, Jason Orendorff 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.
there is already a bug open on this https://bugs.ecmascript.org/show_bug.cgi?id=2792
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss