Closed Bug 352907 Opened 18 years ago Closed 17 years ago

Outer nested while loop always gets braces, changing scope of "let"

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
normal

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
Depends on: 408957
Fixed by making let |not| directly inside a block be a syntax error (bug 408957).
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
/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-
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.