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