Bug 126618 - `DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9`
Summary: `DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9`
Status: RESOLVED DUPLICATE of bug 135704
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 23:29 PST by Mathias Bynens
Modified: 2014-08-07 10:09 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Bynens 2014-01-07 23:29:12 PST
The following JavaScript program should throw an error:

    08

As per the spec[1], `DecimalIntegerLiteral` can never be `0` directly followed by another decimal digit, although Chrome/Opera, PrestOpera, and Firefox do support it.

Note that https://people.mozilla.org/~jorendorff/es6-draft.html#sec-additional-syntax-numeric-literals does not apply here because `8` is not an `OctalDigit`.

[1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals
Comment 1 Oliver Hunt 2014-08-07 10:09:06 PDT
Whoops, i'm a muppet and didn't see this.  Filed another bug that's on the real strict mode restrictions being incorrectly applied.  But that also has radar linkage.

*** This bug has been marked as a duplicate of bug 135704 ***