Closed
Bug 352010
Opened 19 years ago
Closed 19 years ago
Incorrect decompilation for object literal with getter (js1_5/Regress/regress-313803.js)
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jruderman, Assigned: brendan)
References
()
Details
(Keywords: regression, testcase, verified1.8.1)
Attachments
(1 file)
|
1.79 KB,
patch
|
mrbkap
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
js> function() { return ({get z(){ return /x/g } }) }
function () {
return {get z() {return /x/g;};
}
| Assignee | ||
Comment 1•19 years ago
|
||
Jesse, mrbkap: this is familiar. Either it's a dup, or something re-created the bug I'm remembering. Either of you know which?
/be
Comment 2•19 years ago
|
||
this looks like bug 313803 which just regressed
js1_5/Regress/regress-313803.js
BUGNUMBER: 313803
STATUS: uneval() on func with embedded objects with getter or setter
FAILED!: uneval() on func with embedded objects with getter or setter
FAILED!:
Expected value
'(function ff() {obj = {get foo () {return "foo";}};return 1;})',
Actual value
'(function ff() {obj = {get foo() {return "foo";};return 1;})'
FAILED!:
Flags: in-testsuite+
Summary: Incorrect decompilation for object literal with getter → Incorrect decompilation for object literal with getter (js1_5/Regress/regress-313803.js)
| Assignee | ||
Comment 3•19 years ago
|
||
Bob, thanks -- any idea which patch regressed this?
/be
| Assignee | ||
Comment 4•19 years ago
|
||
The patches for bug 306738 and bug 313803 assumed parenthesization of the function expression, but we don't do that any longer. I've added assertions to help catch regressions like this sooner.
/be
Updated•19 years ago
|
Attachment #237840 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Comment 5•19 years ago
|
||
Fixed on trunk.
/be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•19 years ago
|
Attachment #237840 -
Flags: approval1.8.1?
Comment 6•19 years ago
|
||
Comment on attachment 237840 [details] [diff] [review]
fix
a=schrep
Attachment #237840 -
Flags: approval1.8.1? → approval1.8.1+
Comment 7•19 years ago
|
||
*** Bug 352274 has been marked as a duplicate of this bug. ***
Comment 9•19 years ago
|
||
verified fixed 1.8 20060914 windows/linux 1.9 20060914 windows/mac*/linux
Status: RESOLVED → VERIFIED
Keywords: fixed1.8.1 → verified1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•