1.1 --- a/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java Tue Feb 12 23:30:01 2013 +0100
1.2 +++ b/vm/src/main/java/org/apidesign/vm4brwsr/Bck2Brwsr.java Sat Feb 16 09:26:20 2013 +0100
1.3 @@ -68,7 +68,13 @@
1.4 public static void generate(Appendable out, Resources resources, String... classes) throws IOException {
1.5 StringArray arr = StringArray.asList(classes);
1.6 arr.add(VM.class.getName().replace('.', '/'));
1.7 - VM.compile(resources, out, arr);
1.8 + try {
1.9 + ClosureWrapper.produceTo(out, resources, arr);
1.10 + } catch (IOException ex) {
1.11 + throw ex;
1.12 + } catch (Throwable ex) {
1.13 + VM.compile(resources, out, arr);
1.14 + }
1.15 }
1.16
1.17 /** Generates virtual machine from bytes served by a class loader.