Closed Bug 351706 Opened 18 years ago Closed 18 years ago

Decompiler can't make up its mind about whether parameterized E4X literals need parens

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> function() { return <{m}/>.(y) } 
function () {
    return (<{m}/>).(y);
}

js> function() { return (<{m}/>).(y) } 
function () {
    return <{m}/>.(y);
}
Sorry, I'm not going to fix this for js1.7/mozilla1.8.1/firefox2.

/be
Jeff, if you are interested in this, for 1.8.1 or any time, feel free to grab it.

/be
WFM now (the parens "stick"):

js> function() { return <{m}/>.(y) } 
function () {
    return (<{m}/>).(y);
}
js> function() { return (<{m}/>).(y) } 
function () {
    return (<{m}/>).(y);
}

Another fix as part of the decompiler party related to bug 346642?

/be
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checking in regress-351706.js;
/cvsroot/mozilla/js/tests/e4x/Regress/regress-351706.js,v  <--  regress-351706.js
initial revision: 1.1
done
Flags: in-testsuite+
verified fixed 1.9 20061007 windows/linux, passes 1.8 too.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.