Calling toSource on a parsed script containing array of undefined elements returns smaller array - sample attached

RESOLVED FIXED

Status

Rhino
Core
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: tntim96, Unassigned)

Tracking

Details

(Reporter)

Description

6 years ago
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:
[]


Expected results:

Output:
[,]

Comment 1

6 years ago
Fixed in git master: 

https://github.com/mozilla/rhino/commit/fd212b0fe0fdb7b3cde06420fae4e350aff98513
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.