Hi, Thanks for reporting this issue. I filed https://bugs.openjdk.java.net/browse/JDK-8156714 to track this.
Simplified test case is as follows: v = function() { } /**/ function f() { } -Sundar On 5/10/2016 10:30 PM, Silas Baronda wrote: > I have a small test file that has issues evaling in Nashorn. > https://gist.github.com/silasb/f05dc6acf3e7958da618387c45860906 > > Two different ways I can get it to eval: remove the /*******/ comments or > add a comma after line 31. > > I'm running JDK 1.8.0_91 on Mac. > > —Silas