fixed bug 362: preprocessor not preserving line numbers
[org.ibex.core.git] / src / org / ibex / Ibex.java
index bd337f1..a5a2e85 100644 (file)
@@ -348,6 +348,7 @@ public final class Ibex extends JS.Cloneable {
             if (nargs != 1 && nargs != 9999) throw new JSExn("FIXME can only call with one arg");
             getStatic();
             if (t == null) throw new JSExn("No such template " + parentkey);
+            if (nargs == 9999) return t;
             t.apply((Box)a);
             return a;
         }