Skip already empty classpath slots closure
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 23 May 2014 12:43:21 +0200
branchclosure
changeset 15916a5237f059d5
parent 1590 8eeb682738f0
child 1592 f0433f790aaa
Skip already empty classpath slots
rt/vm/src/main/java/org/apidesign/vm4brwsr/VM.java
     1.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/VM.java	Fri May 23 12:39:26 2014 +0200
     1.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/VM.java	Fri May 23 12:43:21 2014 +0200
     1.3 @@ -533,6 +533,7 @@
     1.4                  + "      };\n"
     1.5                  + "      for (var i = 0; i < args.length; i++) {\n"
     1.6                  + "        var at = args[i];\n"
     1.7 +                + "        if(!at) continue;\n"
     1.8                  + "        var ret;\n"
     1.9                  + "        if (typeof at === 'string' && at.substring(at.length - 3) === '.js') {\n"
    1.10                  + "          loadExtension(at);\n"