Console prevents re-declaration of let and const

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
P2
normal
2 years ago
8 months ago

People

(Reporter: cpeterson, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

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

Details

(Whiteboard: [btpp-fix-later])

(Reporter)

Description

2 years ago
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
Duplicate of this bug: 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: → bug 1375300
You need to log in before you can comment on or make changes to this bug.