- public JS callMethod(JS name, JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn {
- //#switch(JS.toString(name))
- case "parseInt": return gs.callMethod(name,a,b,c,rest,nargs);
- case "parseFloat": return gs.callMethod(name,a,b,c,rest,nargs);
- case "decodeURI": return gs.callMethod(name,a,b,c,rest,nargs);
- case "decodeURIComponent": return gs.callMethod(name,a,b,c,rest,nargs);
- case "encodeURI": return gs.callMethod(name,a,b,c,rest,nargs);
- case "encodeURIComponent": return gs.callMethod(name,a,b,c,rest,nargs);
- case "escape": return gs.callMethod(name,a,b,c,rest,nargs);
- case "unescape": return gs.callMethod(name,a,b,c,rest,nargs);
- case "fromCharCode": return gs.callMethod(name,a,b,c,rest,nargs);
+ public JS callMethod(JS method, JS[] args) throws JSExn {
+ //#switch(JSU.toString(method))
+ case "parseInt": return gs.call(method, args);
+ case "parseFloat": return gs.call(method, args);
+ case "decodeURI": return gs.call(method, args);
+ case "decodeURIComponent": return gs.call(method, args);
+ case "encodeURI": return gs.call(method, args);
+ case "encodeURIComponent": return gs.call(method, args);
+ case "escape": return gs.call(method, args);
+ case "unescape": return gs.call(method, args);
+ case "fromCharCode": return gs.call(method, args);