> Christophe Grand a écrit :
> ScriptRuntime.toNumber(ScriptRuntime.getObjectProp(yourFunction, 
> length,
> cx))

Thanks, I've tried this and the "arity" property and the both seem to return 
"confusing" results.
Length always returns 1, and arity 0.

> Attila Szegedi
> You can evaluate uneval() on the function from a script (or calling 
> toString() on it) and parse the resulting string.

I think this is something I may have to resort to (at least in the mean-time) 
since the argument names would also be useful.


Thanks for the replies,
Regards,
Gavin
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to