X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FXWT.java;h=00d15d1fed07aeca9e6d5f84ef2f02586ac49dc4;hb=6547223b65f2b7837605a83115411b59b48c56df;hp=4e3b3e18f17c67d2f87c77823b3bf5498d9392a1;hpb=c2a138c3882a4bd8dce0212ac59765af5cb126c6;p=org.ibex.core.git diff --git a/src/org/xwt/XWT.java b/src/org/xwt/XWT.java index 4e3b3e1..00d15d1 100644 --- a/src/org/xwt/XWT.java +++ b/src/org/xwt/XWT.java @@ -23,10 +23,10 @@ public final class XWT extends JS { public String toString() { return "XWTSUB " + key; } public void put(Object key, Object val) { XWT.this.put(this.key + "." + key, val); } public Object get(Object key) { return XWT.this.get(this.key + "." + key); } - public Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) { + public Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JSExn { return XWT.this.callMethod(this.key, a0, a1, a2, rest, nargs); } - public Object callMethod(Object method, Object a0, Object a1, Object a2, Object[] rest, int nargs) { + public Object callMethod(Object method, Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JSExn { return XWT.this.callMethod(this.key + "." + method, a0, a1, a2, rest, nargs); } } @@ -70,15 +70,15 @@ public final class XWT extends JS { case "thread.yield": return METHOD; case "thread.sleep": return METHOD; case "res.watch": return METHOD; + case "res.unzip": return METHOD; + case "res.uncab": return METHOD; + case "res.cache": return METHOD; + case "res.url": return METHOD; case "soap": return METHOD; case "apply": return METHOD; case "graft": return METHOD; case "ui.browser": return METHOD; case "clone": return METHOD; - case "res.unzip": return METHOD; - case "res.uncab": return METHOD; - case "res.cache": return METHOD; - case "res.url": return METHOD; case "log.println": return METHOD; case "log.dump": return METHOD; case "regexp": return METHOD; @@ -99,7 +99,7 @@ public final class XWT extends JS { //#switch(name) case "thread": Scheduler.add(new Scheduler.Task() { - public void perform() { + public void perform() throws JSExn { try { JS.invokePauseable((JSFunction)value); } catch (JS.PausedException pe) { @@ -117,11 +117,7 @@ public final class XWT extends JS { } public Object callMethod(Object name, Object a, Object b, Object c, Object[] rest, int nargs) throws JSExn { - if (name.equals("date")) { - JSArray args = new JSArray(); - for(int i=0; i