Closed Bug 352261 Opened 19 years ago Closed 19 years ago

Decompilation does not preserve explicit right-associativity

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase, verified1.8.1)

Attachments

(1 file)

Example 1: js> g = function(a,b,c) { return a - (b + c) } function (a, b, c) { return a - b + c; } js> g(1, 10, 100) -109 js> h = eval(uneval(g)) function (a, b, c) { return a - b + c; } js> h(1, 10, 100) 91 Example 2: js> p = function (a,b,c) { return a + (b - c) } function (a, b, c) { return a + b - c; } js> p(3, "4", "5") 2 js> q = eval(uneval(p)) function (a, b, c) { return a + b - c; } js> q(3, "4", "5") 29
Attached patch fixSplinter Review
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237897 - Flags: review?(mrbkap)
OS: Mac OS X 10.4 → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Attachment #237897 - Flags: review?(mrbkap) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #237897 - Flags: approval1.8.1?
*** Bug 352277 has been marked as a duplicate of this bug. ***
Comment on attachment 237897 [details] [diff] [review] fix a=schrep for 181drivers for JS decompiler fuzz bugs.
Attachment #237897 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
Checking in regress-352261.js; /cvsroot/mozilla/js/tests/js1_5/Regress/regress-352261.js,v <-- regress-352261.js initial revision: 1.1 done
Flags: in-testsuite+
verified fixed 1.8 20060914 windows/linux 1.9 20060914 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: