WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 135704
126618
`DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9`
https://bugs.webkit.org/show_bug.cgi?id=126618
Summary
`DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9`
Mathias Bynens
Reported
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
Attachments
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
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
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug