On Aug 1, 9:32 pm, Ivan Voras <[EMAIL PROTECTED]> wrote: > On Jul 31, 6:33 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > On Jul 30, 1:22 pm, Ivan Voras <[EMAIL PROTECTED]> wrote: > > > So, how to create a hosted Java class accessible to the JS code with a > > > varargs constructor? > > > There is also an extended form of jsConstructor which includes a list > > args. > > public static Scriptable jsConstructor(Context cx, Object[] args, > > Function ctorObj, boolean inNewExpr); > > Thanks, this worked! I don't see this form documented in the APIdocs - > is it something new?
It's used in one of the examples.. But is not documented. I don't know the provenience of it sadly. I use it a lot in rhinoDOM so that I can easily pass around and wrap/unwrap the DOM objects. _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
