return ret;
}
- public JS call(JS[] args) throws JSExn { return (JS)new Interpreter(this, false, args).run(null); }
+ 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); }
JSScope getParentScope() { return parentScope; }
args[args.length - 1] = JSU.S(s);
// note: can't perform pausing operations in here
- sb.append(JSU.toString(replaceFunc.call(args)));
+ sb.append(JSU.toString(replaceFunc.call(null, args)));
} else {
sb.append(mySubstitute(match,replaceString,s));