Skip to main content

construct

Function construct 

Source
pub fn construct(name: &str, args: &[Value]) -> Option<Result<Value, String>>
Expand description

Construct a stdlib class instance (new URL(...), new EventEmitter(), and new Buffer(...) legacy), reachable from construct_builtin. None if name is not a stdlib constructor.