Closed
Bug 1022363
Opened 12 years ago
Closed 12 years ago
Parser bug for number token followed by in/instanceof without whitespace
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: firefox, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140428193838
Steps to reproduce:
`1.in foo`
`1.instanceof foo`
`1in foo`
`1instanceof foo`
Actual results:
SyntaxError: identifier starts immediately after numeric literal
Expected results:
Should not have thrown that syntax error as it is syntactically correct.
Parser should make an exception for this bug if it involves `in` or `instanceof`
Updated•12 years ago
|
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Comment 1•12 years ago
|
||
I think this bug is invalid. See https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals
The SourceCharacter immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit.
Especially: "3in is an error"
OS: Linux → All
Hardware: x86_64 → All
| Reporter | ||
Comment 2•12 years ago
|
||
I believe you are correct. Not sure how I missed that line all this time. Thanks for pointing it out.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•