< prev index next >

nashorn/test/script/currently-failing/JDK-8055034.js

Print this page

        

*** 49,59 **** jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); if (! new File(jjsCmd).isFile()) { jjsCmd = javahome + "/bin/jjs"; jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); } ! jjsCmd += " -J-Xpatch:" + nashornJar; $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)"); // $ERR has all interactions including prompts! Just check for error substring. --- 49,59 ---- jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); if (! new File(jjsCmd).isFile()) { jjsCmd = javahome + "/bin/jjs"; jjsCmd = jjsCmd.toString().replace(/\//g, File.separator); } ! jjsCmd += " -J--patch-module=jdk.scripting.nashorn=" + nashornJar; $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)"); // $ERR has all interactions including prompts! Just check for error substring.
< prev index next >