Bug 126618
Summary: | `DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9` | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mathias Bynens <mathias> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | barraclough, dbates, ggaren, mathias, oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Mathias Bynens
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Oliver Hunt
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 ***