Closed Bug 352015 Opened 19 years ago Closed 19 years ago

Missing parens in decompilation of "yield" expressions

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: testcase, verified1.8.1)

Attachments

(1 file)

js> version(170) 0 js> function() { (yield).a } function () { yield.a; } js> function() { 3 + (yield 4) } function () { 3 + yield 4; }
Attached patch fixSplinter Review
This means functon () { x = yield y; } will overparenthesize the RHS, but that's ok by me. KISS. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237589 - Flags: review?(mrbkap)
OS: Mac OS X 10.4 → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Attachment #237589 - Flags: review?(mrbkap) → review+
Comment on attachment 237589 [details] [diff] [review] fix Safe patch builds on the recent precedence reform, to automate parenthesization when decompiling. /be
Attachment #237589 - Flags: approval1.8.1?
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 352030 has been marked as a duplicate of this bug. ***
Comment on attachment 237589 [details] [diff] [review] fix a=schrep for js decompiler cleanup
Attachment #237589 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
Checking in js1_7/geniter/regress-352015.js; /cvsroot/mozilla/js/tests/js1_7/geniter/regress-352015.js,v <-- regress-352015.js initial revision: 1.1 done
Flags: in-testsuite+
verified fixed 1.8 1.9 2006091022 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: