Skip to main content

construct

Function construct 

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

Construct an instance with new — creates a fresh object, binds it as this, runs the constructor, and returns the object (unless the constructor returns its own object).