Dear list,

When I run the following script through WSH or via the
javax.script.ScriptEngine interpreter it returns "hello world".
However, when I compile this via org.mozilla.javascript.tools.jsc.Main
and then run the resulting class I get the result
org.mozilla.javascript.interpretedfunct...@f81843.  What can I do to get
this to work properly?

 

//var WshShell = WScript.CreateObject("WScript.Shell");

 

var inputStr = "myFunc(); function myFunc() { return 'hello world';}"

var outp = eval(inputStr);

java.lang.System.out.println(outp);

//WScript.echo(outp);

 

Best,

Clifton Sothoron

 

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to