Closed Bug 798642 Opened 12 years ago Closed 6 years ago

AST toSource on getter/setter inserting 'function' keyword

Categories

(Rhino Graveyard :: Core, defect)

head
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: tntim96, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Build ID: 20120905151427 Steps to reproduce: Parsed script with getter/setter logic and printed it out again. Actual results: var o = {_x: 123, get xfunction() { return this._x; }, set xfunction(value) { this._x = value; }}; Expected results: var o = { _x: 123, get x() { return this._x; }, set x(value) { this._x = value; } };
The PartialFixButIndentationIncorrect.patch has not been run against all the tests.

Closing. Bug management is now done here:
https://github.com/mozilla/rhino

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: