Closed Bug 352985 Opened 18 years ago Closed 12 years ago

Round-trip change with assign-to-const in "if" condition

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

> function() { if (x=true) { h; } const x; }
function () {
    if (true) {
        h;
    }
    const x;
}

The "if (true)" is of course eliminated if I pass it through the compiler and decompiler again.
OS: Mac OS X → All
Hardware: PowerPC → All
Fixed by saving source.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.