newObject

fun newObject(cx: Context, scope: Scriptable, constructorName: String, args: Array<Any?>?): Scriptable(source)
fun newObject(ctor: Any?, cx: Context, scope: Scriptable, args: Array<Any?>): Scriptable(source)