StringBuffer code = new StringBuffer(expression.length() + 64);
code.append("function _tmlscript() {").append(expression).append("\n} _tmlscript();");
Script script = getCompiledScript(code.toString(), cx);
return script.exec(cx, scope);
}
protected Object executeExpression(String expression, RhinoContext cx, Scriptable scope) {
Script script = getCompiledScript(expression, cx);
return script.exec(cx, scope);