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)
Tracking
()
VERIFIED
INVALID
People
(Reporter: shaver, Assigned: brendan)
References
(
URL
)
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. =) )
| Assignee | ||
Comment 1•26 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•