- /** Note: code gets run in an <i>unpauseable</i> context. */
- public JS call(JS a0, JS a1, JS a2, JS[] rest, int nargs) throws JSExn {
- Interpreter cx = new Interpreter(this, false, new Interpreter.JSArgs(a0,a1,a2,rest,nargs,this));
- return cx.resume();
- }
+ public JS call(JS method, JS[] args) throws JSExn {
+ if (method != null) return super.call(method, args);
+ return (JS)new Interpreter(this, false, args).run(null); }