typeof(x) works from javascript, but if type info is needed then the sender of this thread post is presumably trying to call a function defined inside a js script from Java.

Since javascript is untyped, I presume that if you don't know beforehand what type parameters the js function expects, it's impossible to work it out through reflection from Java. I'd be interested to learn otherwise.

ie javascript doesn't have parameter types.

FoxZ wrote:
On 10 fév, 07:51, [email protected] wrote:
how to get parameter types of a javascript function compiled using
rhino?????

typeof(x)

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

Reply via email to