break;
} else {
JS c = (JS)object;
- ret = method == null ? c.call(jsargs) : c.call(method, jsargs);
+ ret = c.call(method, jsargs);
}
if (pausecount > initialPauseCount) { pc++; return null; }
private JS method;
JS obj;
public Stub(JS obj, JS method) { this.obj = obj; this.method = method; }
- public JS call(JS[] args) throws JSExn { return obj.call(method, args); }
+ public JS call(JS method, JS[] args) throws JSExn {
+ if (method==null) return obj.call(this.method, args);
+ return super.call(method, args);
+ }
}
static final class Stack {