1.1 --- a/rt/vm8/src/test/java/org/apidesign/bck2brwsr/vm8/TestVM.java Thu Jun 26 23:54:17 2014 +0200
1.2 +++ b/rt/vm8/src/test/java/org/apidesign/bck2brwsr/vm8/TestVM.java Sun Aug 10 07:12:30 2014 +0200
1.3 @@ -125,10 +125,16 @@
1.4 }
1.5
1.6 static TestVM compileClass(StringBuilder sb, ScriptEngine[] eng, String... names) throws ScriptException, IOException {
1.7 + return compileClass(sb, eng, new EmulationResources(), names);
1.8 + }
1.9 + static TestVM compileClass(
1.10 + StringBuilder sb, ScriptEngine[] eng,
1.11 + Bck2Brwsr.Resources resources, String... names
1.12 + ) throws ScriptException, IOException {
1.13 if (sb == null) {
1.14 sb = new StringBuilder();
1.15 }
1.16 - Bck2Brwsr.generate(sb, new EmulationResources(), names);
1.17 + Bck2Brwsr.generate(sb, resources, names);
1.18 ScriptEngineManager sem = new ScriptEngineManager();
1.19 ScriptEngine js = sem.getEngineByExtension("js");
1.20 if (eng != null) {