Closed Bug 352732 Opened 18 years ago Closed 17 years ago

Decompiling "if (x) L: let x;" loses label and right-brace

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: assertion, testcase)

js> function() { if (x) L: let x; }
function () {
    if (x) {
    
        let x;
}

Same thing, with "else":

js> function() { if (x) L: let x; else y; }
function () {
    if (x) {
    
        let x;
    else {
        y;
    }
}
Same thing, with an intervening "if(1)":

js> function() { if (w) L: if(1) let x; }    
function () {
    if (w) {
    
        let x;
}
Now, instead of the incorrect decompilation, I get

Assertion failure: jp->sprinter.base[offset+0] == ' ', at jsopcode.c:655
WFM on intel mac, no bogosity or assertion.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Keywords: assertion
Resolution: --- → WORKSFORME
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-352732.js,v  <--  regress-352732.js
initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.