Open
Bug 1257088
Opened 9 years ago
Updated 1 year ago
Console prevents re-declaration of let and const
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(firefox45 affected, firefox46 affected, firefox47 affected, firefox48 affected, firefox-esr38 unaffected)
NEW
Tracking | Status | |
---|---|---|
firefox45 | --- | affected |
firefox46 | --- | affected |
firefox47 | --- | affected |
firefox48 | --- | affected |
firefox-esr38 | --- | unaffected |
People
(Reporter: cpeterson, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: [btpp-fix-later])
The console should just be allowed to reinitialize anything (let and even const), which Shu argued for in bug 1246215 comment 4. She says this would require some special mode of eval that ignores TDZ errors, which we haven't implemented yet.
let x = 1;
let x = 2;
SyntaxError: redeclaration of let x
const y = 1;
const y = 2;
SyntaxError: redeclaration of const y
Comment 2•9 years ago
|
||
I'm interested in fixing this by way of bug 1249175.
Updated•7 years ago
|
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•