On Aug 2, 3:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> 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.

Isn't this documented in the FunctionObject constructor:
http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/FunctionObject.html#FunctionObject(java.lang.String,
java.lang.reflect.Member, org.mozilla.javascript.Scriptable)? I'll fix
the docs if there's something missing.

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

Reply via email to