Closed Bug 349822 Opened 18 years ago Closed 18 years ago

Incorrect decompilation for "x.@[2]"

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: testcase, verified1.8.1, Whiteboard: [baking until 8/24])

Attachments

(1 file)

> function () { return x.@[2]; } function () { return x.@(2); } > function () { return x.@(2); } SyntaxError on line 1: syntax error
Attached patch fixSplinter Review
A little lookahead when decompiling QNAMEPART handles the common @foo (QNAMEPART flowing directly into TOATTRNAME), and TOATTRNAME handles the general computed attribute name case. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #235046 - Flags: review?(mrbkap)
OS: Mac OS X 10.4 → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Comment on attachment 235046 [details] [diff] [review] fix I <3 the decompiler!
Attachment #235046 - Flags: review?(mrbkap) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: blocking1.8.1?
Resolution: --- → FIXED
Attachment #235046 - Flags: approval1.8.1?
Flags: blocking1.8.1? → blocking1.8.1+
Whiteboard: [baking[
Whiteboard: [baking[ → [baking until 8/24]
Checking in regress-349822.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-349822.js,v <-- regress-349822.js initial revision: 1.1
Flags: in-testsuite+
oops. Checking in e4x/Regress/regress-349822.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-349822.js,v <-- regress-349822.js new revision: 1.2; previous revision: 1.1
Comment on attachment 235046 [details] [diff] [review] fix a=beltzner on behalf of drivers for the MOZILLA_1_8_BRANCH
Attachment #235046 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
(In reply to comment #7) > Fixed on the 1.8 branch. This broke the 1.8 branch.
(In reply to comment #8) > (In reply to comment #7) > > Fixed on the 1.8 branch. > > This broke the 1.8 branch. My checkin message: Argh, need to land more trunk patches to avoid merge hell. Sorry about that -- no more blind merging for me. /be
verified fixed 1.9 20060824 windows/mac*/linux
Status: RESOLVED → VERIFIED
verified fixed 1.8 20060827 windows/mac*/linux
update to match changing decompilation of x.@[2] Checking in regress-349822.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-349822.js,v <-- regress-349822.js new revision: 1.3; previous revision: 1.2 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: