Gavin Camp (gcamp) a écrit :
> The problem is I can't find a way to extract the function signature from
> the compiled function.  I need this so I know how many arguments to call
> with and can then bind it into the workflow.  Looking though the source
> there seems to be an arity function but this always seems to return 0.
> 
> Is there anyway to do this?

Did you try to get the length property?
ScriptRuntime.toNumber(ScriptRuntime.getObjectProp(yourFunction, length, 
cx))

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

Reply via email to