- private JSObj obj;
- public JSCallableStub(JSObj obj, Object method) { this.obj = obj; this.method = method; }
- public Object call(JSArray args) { return ((JSCallable)obj).call(method,args); }
+ private JS obj;
+ public JSCallableStub(JS obj, Object method) { this.obj = obj; this.method = method; }
+ public Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) {
+ return ((JSCallable)obj).callMethod(method, a0, a1, a2, rest, nargs);
+ }