Closed
Bug 353026
Opened 18 years ago
Closed 17 years ago
Incorrect decompilation for object literal with setter for property called "yield"
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 355736
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: regression, testcase)
js> f = function(){ return {set yield(){}}; } function () { return {set 'yield'() {}}; } js> eval("" + f) typein:19: SyntaxError: missing : after property id: typein:19: return {set 'yield'() {}}; typein:19: ................^
Reporter | ||
Comment 1•18 years ago
|
||
It is possible to reproduce this bug in JavaScript 1.7 as well: js> p = {} [object Object] js> p.__defineSetter__("null", function(){}) js> uneval(p) ({set 'null'() {}}) js> eval(uneval(p)) typein:6: SyntaxError: missing : after property id: typein:6: ({set 'null'() {}}) typein:6: ......^
Comment 2•17 years ago
|
||
Brian, don't you have a bug like this?
Comment 3•17 years ago
|
||
bug 355736 is probably a better bug on essentially the same issue. duping
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•