Closed Bug 350226 Opened 18 years ago Closed 18 years ago

Decompiler still can't make up its mind for <x/>.@[*]

Categories

(Core :: JavaScript Engine, defect, P2)

PowerPC
macOS
defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase, verified1.8.1)

Attachments

(1 file)

This is a continuation of bug 349956. > function () { <x/>[@[*]]; } function () { <x/>.@[*]; } > function () { <x/>.@[*]; } function () { <x/>[@[*]]; }
(In reply to comment #0) > This is a continuation of bug 349956. > > > function () { <x/>[@[*]]; } > function () { <x/>.@[*]; } I get the same result: js> function () { <x/>[@[*]]; } function () { <x/>.@[*]; } > > function () { <x/>.@[*]; } > function () { <x/>[@[*]]; } But I get the correct result here: js> function () { <x/>.@[*]; } function () { <x/>.@[*]; } I'm running with the patches for bug 349650 and bug 350531. /be
Attached patch fix (deleted) — Splinter Review
The JOF_XMLNAME format is as commented in jsopcode.h -- it must not apply to the JSOP_XMLNAME or derived (JSOP_(BIND|SET)XMLNAME) ops. Those ops are used only for unqualified (that is, not preceded by the binary . or .. operators) XML names, and so if used in [] after a left operand of [], must be decompiled using [], not by converting [] to dot. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237040 - Flags: review?(jwalden+bmo)
Comment on attachment 237040 [details] [diff] [review] fix After staring at this long enough and after taking into (heavy) consideration the previous comment, I *think* this is correct.
Attachment #237040 - Flags: review?(jwalden+bmo) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 237040 [details] [diff] [review] fix This fix is a pure E4X only decompilation fix, can't break anything else, and demonstrably helps. /be
Attachment #237040 - Flags: approval1.8.1?
Checking in regress-350226.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-350226.js,v <-- regress-350226.js initial revision: 1.1
Flags: in-testsuite+
Comment on attachment 237040 [details] [diff] [review] fix a=beltzner on behalf of 181drivers
Attachment #237040 - Flags: approval1.8.1? → approval1.8.1+
Priority: -- → P2
Target Milestone: --- → mozilla1.8.1
To avoid conflicts, this patch should land after the patches for bug 350531 and its followups. /be
Depends on: 350531
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
verified fixed 1.9a1_2006090707 windows/mac*/linux
Status: RESOLVED → VERIFIED
verified fixed 1.8 1.9 20060909 windows/mac*/linux
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: