Open Bug 1257088 Opened 9 years ago Updated 1 year ago

Console prevents re-declaration of let and const

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(firefox45 affected, firefox46 affected, firefox47 affected, firefox48 affected, firefox-esr38 unaffected)

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
Depends on: 1257175
Depends on: 1249175
I'm interested in fixing this by way of bug 1249175.
Great, thanks!
Priority: -- → P2
Whiteboard: [btpp-fix-later]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.