Closed Bug 55735 Opened 26 years ago Closed 26 years ago

strict var-redecl warning doesn't grok conditional declarations

Categories

(Core :: JavaScript Engine, defect, P3)

All
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: shaver, Assigned: brendan)

References

()

Details

Found this while trying to reduce the ``strict warning'' spew. js> if (true) { var v = 1; } else { var v = 2; } 2: strict warning: redeclaration of var v: 2: strict warning: if (true) { var v = 1; } else { var v = 2; } 2: strict warning: ....................................^ js> (Given the scorn that you heap on gcc's ``x possibly used uninitialized'' code, it seems like you should really fix this. =) )
ReadYerECMA. There is no block scope in JS1. You are redeclaring v. Closing this bug as INVALID. /be
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.