Closed Bug 622389 Opened 14 years ago Closed 13 years ago

exception message mentioning undefined variable can be wrong when using let

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 469758

People

(Reporter: heycam, Unassigned)

References

(Blocks 1 open bug)

Details

Evaluating this:

(function() { { let x } { let y; y.a } })()

results in "TypeError: x is undefined" instead of "TypeError: y is undefined".
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.