Open Bug 1257088 Opened 8 years ago Updated 3 months 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

(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]
See Also: → 1375300
Product: Firefox → DevTools
See Also: → 1580891
Severity: normal → S3
No longer depends on: 1249175
You need to log in before you can comment on or make changes to this bug.