- public Object callMethod(Object name, Object a, Object b, Object c, Object[] rest, int nargs) throws JSExn {
+ public JS callMethod(JS name, JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn {
+ if(JS.isString(name)) return callMethod(JS.toString(name),a,b,c,rest,nargs);
+ return super.callMethod(name,a,b,c,rest,nargs);
+ }
+ JS callMethod(String name, JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn {