From 5142290a9cfc3385caee67a58179e2332571b50a Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 9 Feb 2004 23:12:37 +0000 Subject: [PATCH] fixed bug 452 darcs-hash:20040209231237-5007d-72d820dc5da628cdc4225d1b1eb5f9edf2aaca61.gz --- src/org/ibex/Ibex.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/ibex/Ibex.java b/src/org/ibex/Ibex.java index 8d86da7..bd337f1 100644 --- a/src/org/ibex/Ibex.java +++ b/src/org/ibex/Ibex.java @@ -345,8 +345,7 @@ public final class Ibex extends JS.Cloneable { } public Object call(Object a, Object b, Object c, Object[] rest, int nargs) throws JSExn { // GROSS hack - if (nargs == 9999) return t; - if (nargs != 1) throw new JSExn("FIXME can only call with one arg"); + 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); t.apply((Box)a); -- 1.7.10.4