Closed
Bug 356248
Opened 18 years ago
Closed 17 years ago
Incorrect decompilation for object literal with named getter function; property and function names are mashed together
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jruderman, Assigned: crowderbt)
References
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
2.35 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
Split from bug 356085. js> function() { return {p setter: function y() { } } } function () { return {set py() {}}; }
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•18 years ago
|
Assignee: general → crowder
Status: ASSIGNED → NEW
Assignee | ||
Comment 1•18 years ago
|
||
Still trying to sneak in the cleanup for these redundant ternaries, also, added one tiny little ' ' to the print string for get/set.
Attachment #241951 -
Flags: review?(brendan)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 2•18 years ago
|
||
Is this patch still needed? /be
Assignee | ||
Comment 3•18 years ago
|
||
Yes.
Comment 4•17 years ago
|
||
Comment on attachment 241951 [details] [diff] [review] adding a space in decompilation But this always puts a space after the setter name, even if there's no intrinsic function name: js> function() { return {p setter: function() { } } } function () { return {set p () {}}; } /be
Attachment #241951 -
Flags: review?(brendan) → review-
Assignee | ||
Comment 5•17 years ago
|
||
Not sure if this is really good way to determine whether the function has a name or not, at this point in the process, but it seems viable.
Attachment #241951 -
Attachment is obsolete: true
Attachment #259147 -
Flags: review?(brendan)
Comment 6•17 years ago
|
||
Comment on attachment 259147 [details] [diff] [review] no extra space if the decompiled rval starts with '(' Great, r=me. Thanks, /be
Attachment #259147 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 7•17 years ago
|
||
jsopcode.c:3.227
Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 8•17 years ago
|
||
/cvsroot/mozilla/js/tests/js1_5/decompilation/regress-356248.js,v <-- regress-356248.js initial revision: 1.1
Flags: in-testsuite+
Comment 9•17 years ago
|
||
verified fixed 1.9.0 linux/mac* 2007-05-05 shell.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•