1.1 --- a/test/script/trusted/JDK-8006529.js Fri Oct 16 12:19:59 2015 -0700 1.2 +++ b/test/script/trusted/JDK-8006529.js Thu Oct 29 17:22:12 2015 -0700 1.3 @@ -120,7 +120,7 @@ 1.4 1.5 var sourceForMethod = Source.class.getMethod("sourceFor", java.lang.String.class, java.lang.String.class) 1.6 var ParserConstructor = Parser.class.getConstructor(ScriptEnvironment.class, Source.class, ErrorManager.class) 1.7 -var CompilerConstructor = Compiler.class.getConstructor(Context.class, ScriptEnvironment.class, CodeInstaller.class, Source.class, ErrorManager.class, boolean.class); 1.8 +var CompilerConstructor = Compiler.class.getMethod("forNoInstallerCompilation", Context.class, Source.class, boolean.class); 1.9 1.10 // compile(script) -- compiles a script specified as a string with its 1.11 // source code, returns a jdk.nashorn.internal.ir.FunctionNode object 1.12 @@ -134,7 +134,7 @@ 1.13 var parser = ParserConstructor.newInstance(env, source, ThrowErrorManager.class.newInstance()); 1.14 var func = parseMethod.invoke(parser); 1.15 1.16 - var compiler = CompilerConstructor.newInstance(ctxt, env, null, source, null, false); 1.17 + var compiler = CompilerConstructor.invoke(null, ctxt, source, false); 1.18 1.19 return compileMethod.invoke(compiler, func, phases); 1.20 };