Closed
Bug 411041
Opened 17 years ago
Closed 16 years ago
labels prevent otherwise valid let declarations
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mrbkap, Unassigned)
References
Details
(Keywords: regression)
js> function(){ foo: let k; } typein:1: SyntaxError: let declaration not directly within block: typein:1: function(){ foo: let k; } typein:1: .................^ I'd expect that to compile. It doesn't because labels push a statement onto the statement stack, I should have caught this during review, sorry.
Comment 1•17 years ago
|
||
What is the purpose of that label? It can't be used by break or continue. /be
Reporter | ||
Comment 2•17 years ago
|
||
It's useless. I doubt this would bite any real code, I'm just pointing it out for consistency's sake.
Severity: normal → minor
Comment 3•16 years ago
|
||
Invalid per ES4 as proposed and likely to be accepted. /be
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•