Closed Bug 351793 Opened 19 years ago Closed 19 years ago

Double-parenthesized object literal decompiles incorrectly.

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: regression, testcase, verified1.8.1)

Attachments

(1 file)

js> function() { (({a:b, c:3})); } function () { {a:b, c:3}; } Note that if I use only single parens around the object literal, it decompiles correctly, thanks to the fix for bug 351625.
Comment says it all. Incomplete fix for bug 351625, I'll note the dependency for posterity in a sec. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237343 - Flags: review?(mrbkap)
OS: Mac OS X 10.4 → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Depends on: 351625
Attachment #237343 - Flags: review?(mrbkap) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 237343 [details] [diff] [review] avoid redundant JSOP_GROUPs This is safe and important for js1.7 -- we should not regress decompilation of object initializers, even if they are used as whole expression statements (this happens with JSON data used with eval/uneval). /be
Attachment #237343 - Flags: approval1.8.1?
Comment on attachment 237343 [details] [diff] [review] avoid redundant JSOP_GROUPs a=schrep for drivers.
Attachment #237343 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
Checking in regress-351793.js; /cvsroot/mozilla/js/tests/js1_5/Regress/regress-351793.js,v <-- regress-351793.js initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8 1.9 20060909 windows/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: