Re: Bug in Nashorn Parser API (order of statements)

2015-03-16 Thread A. Sundararajan
Hi, Thanks for reporting this issue. I filed a bug https://bugs.openjdk.java.net/browse/JDK-8075207 Thanks, -Sundar On Sunday 15 March 2015 09:41 PM, Remi Forax wrote: Hi guys, Hi Sundar, it seems that the parser groups all the function declarations before all the statements instead of fol

Bug in Nashorn Parser API (order of statements)

2015-03-15 Thread Remi Forax
Hi guys, Hi Sundar, it seems that the parser groups all the function declarations before all the statements instead of following the order of the file. [forax@localhost jsjs]$ cat bug_parser.js var File = Java.type("java.io.File"); var Parser = Java.type("jdk.nashorn.api.tree.Parser"); var Tree