Closed Bug 1257175 Opened 8 years ago Closed 8 years ago

Console prevents let re-declaration even when first was an error

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(firefox48 affected)

RESOLVED DUPLICATE of bug 1257088
Tracking Status
firefox48 --- affected

People

(Reporter: jorendorff, Unassigned)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1246215 +++

STR:

1. Try this in the console:

let bob = Marth.PI;
ReferenceError: Marth.PI is not defined
let bob = Math.PI;
SyntaxError: redeclaration of let bob

Expected:

I would like to be able to redeclare `bob` successfully with `let bob = Math.PI` since the first attempt contained a ReferenceError.

Actual:

Redeclaration fails with a SyntaxError.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
No longer depends on: 1246215
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.