Fix JDK8 issue with Nashorn JS engine bindings