fn new<'a, 'b, C: Context<'a>, A, AS>(cx: &mut C, args: AS) -> JsResult<'a, Self>
    where
        A: Value + 'b,
        AS: IntoIterator<Item = Handle<'b, A>>,
    {
        let constructor = Self::constructor(cx)?;
        constructor.construct(cx, args)
    }
/// Convenience method for constructing new instances of this class without having to extract the constructor function.
Convenience method for constructing new instances of this class without having to extract the constructor function.
Convenience method for constructing new instances of this class without having to extract the constructor function .
fn new<'a, 'b, C: Context<'a>, A, AS>(cx: &mut C, args: AS) -> JsResult<'a, Self>
    where
        A: Value + 'b,
        AS: IntoIterator<Item = Handle<'b, A>>,
    {
        let constructor = Self::constructor(cx)?;
        constructor.construct(cx, args)
    }
fn new < ' a , ' b , C : Context < ' a > , A , AS > ( cx : & mut C , args : AS ) -> JsResult < ' a , Self > where A : Value + ' b , AS : IntoIterator < Item = Handle < ' b , A > > , { let constructor = Self :: constructor ( cx ) ? ; constructor . construct ( cx , args ) }
Convenience method for constructing new instances of this class without having to extract the constructor function.
Convenience method for constructing new instances of this class without having to extract the constructor function .
cx
&mut C
args
AS