* then a method is called, with a string argument (json encoded)
*
*/
- public void executeFile(string fname, string call_method, string js_data)
+ public string executeFile(string fname, string call_method, string js_data)
+ throws JavascriptError
{
string file_data;
if (!FileUtils.test (fname, FileTest.EXISTS)) {
if (!othis.has_property(ctx,jmethod)) {
throw new JavascriptError.MISSING_METHOD ("Plugin: missing method %s", call_method);
- return;
+
}
var val = othis.get_property (ctx, jmethod, out exb);
print("ret:%s\n",(string) buf);
-
+ return (string) buf;
}