Closed Bug 352266 Opened 18 years ago Closed 18 years ago

Excess indentation causes round-trip change

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase)

js> function() { if(x) {{ let x = 4; }}  }
function () {
    if (x) {
       
            let x = 4;
    }
}

If I feed that back into the compiler and decompiler, I get

function () {
    if (x) {
        let x = 4;
    }
}
Forthcoming patch in bug 352217 will fix this.

/be
Depends on: 352217
Fixed by patch for bug 352217:

js> function() { if(x) {{ let x = 4; }}  }
function () {
    if (x) {
        {
            let x = 4;
        }
    }
}

/be
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checking in regress-352266.js;
/cvsroot/mozilla/js/tests/js1_7/block/regress-352266.js,v  <--  regress-352266.js
initial revision: 1.1
done
Flags: in-testsuite+
verified fixed 1.9 20060914 windows/mac*/linux
bug not evident on 1.8...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.