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)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: brendan)

References

()

Details

(Keywords: regression, testcase, verified1.8.1)

Attachments

(1 file)

js> function() { return ({get z(){ return /x/g } }) } function () { return {get z() {return /x/g;}; }
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
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)
Bob, thanks -- any idea which patch regressed this? /be
Attached patch fixSplinter Review
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
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237840 - Flags: review?(mrbkap)
Attachment #237840 - Flags: review?(mrbkap) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #237840 - Flags: approval1.8.1?
Comment on attachment 237840 [details] [diff] [review] fix a=schrep
Attachment #237840 - Flags: approval1.8.1? → approval1.8.1+
*** Bug 352274 has been marked as a duplicate of this bug. ***
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
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: