Skip to main content

construct_nt

Function construct_nt 

Source
pub fn construct_nt(
    ctor: &Value,
    args: Vec<Value>,
    new_target: Value,
) -> Result<Value, String>
Expand description

new with an explicit new.target (differs from ctor when a derived class calls super(...) — the target stays the originally-newed class).