Closed
Bug 381304
Opened 18 years ago
Closed 18 years ago
getter/setter toSource issue
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: BijuMailList, Unassigned)
References
()
Details
(Keywords: testcase)
related bug 379566, bug 381303
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070519 Minefield/3.0a5pre
toSource of an object with property, decompiles differently depending upon whether the property is a keyword or not
var obj = {set inn(value) {this.for = value;}, get inn() {return this.for;}};
obj.toSource();
gives ==>
({set inn (value) {this.for = value;}})
var obj = {set in(value) {this.for = value;}, get in() {return this.for;}};
obj.toSource();
gives ==>
({in setter:(function (value) {this.for = value;})})
Other Cases:-
============
var obj = {get in(value) {this.for = value;}, set in() {return this.for;}};
obj.toSource();
gives ==>
({in setter:(function () {return this.for;})})
var obj = {set inn(value) {this.for = value;}, get in() {return this.for;}};
obj.toSource();
gives ==>
({set inn (value) {this.for = value;}, in getter:(function () {return this.for;})})
var obj = {set in(value) {this.for = value;}, get inn() {return this.for;}};
obj.toSource();
gives ==>
({in setter:(function (value) {this.for = value;}), get inn () {return this.for;}})
Comment 1•18 years ago
|
||
This seems to have been fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Updated•18 years ago
|
Flags: in-testsuite?
Comment 2•18 years ago
|
||
/cvsroot/mozilla/js/tests/js1_5/extensions/regress-381304.js,v <-- regress-381304.js
initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•