Closed Bug 689314 Opened 14 years ago Closed 14 years ago

Calling toSource on a parsed script containing lambda returns extra return and semi-colon - sample attached

Categories

(Rhino Graveyard :: Core, defect)

head
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tntim96, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 Build ID: 20110902133716 Steps to reproduce: String source = "[,]"; Parser parser = new Parser(); AstRoot astRoot = parser.parse(new StringReader(source), null, 1); System.out.println(astRoot.toSource()); Actual results: Output: x = function([a, b]) return a + b; ; Expected results: Output: x = function([a, b]) a + b;
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.