Rhino object returns for native JS objects?

59 views
Skip to first unread message

tigerfoot

unread,
May 10, 2012, 3:56:59 PM5/10/12
to mozilla-rhino
Hello,

What object can I cast this to?

foo = jsEngine.asInstanceOf[Invocable].invokeFunction("go")

Where the scripted body of the go() function returns
{a:'A',b:'B',c:'C'}

I get errors about sun.org.mozilla.javascript.internal.NativeObject.

Can I cast this to something useful in Java so I can get to properties
a, b, and c?

Thanks,
Greg
Reply all
Reply to author
Forward
0 new messages