Closed
Bug 352907
Opened 19 years ago
Closed 18 years ago
Outer nested while loop always gets braces, changing scope of "let"
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: testcase)
js> j = (function() { while(0) while(0) let k=3; return k; })
function () {
while (0) {
while (0)
let k = 3;
}
return k;
}
js> k=2
2
js> j()
js> eval(""+j)()
2
Reporter | ||
Comment 1•18 years ago
|
||
Fixed by making let |not| directly inside a block be a syntax error (bug 408957).
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 2•18 years ago
|
||
/cvsroot/mozilla/js/tests/public-failures.txt
new revision: 1.22; previous revision: 1.21
/cvsroot/mozilla/js/tests/js1_7/block/regress-352907.js
initial revision: 1.1
Flags: in-testsuite+
Flags: in-litmus-
You need to log in
before you can comment on or make changes to this bug.
Description
•