newConstructor

abstract fun newConstructor(name: String, arity: Int, build: (JsObject, List<JsValue>) -> Unit): JsFunction(source)

A host constructor: new makes a plain object and hands it to build to fill in.