defineConstructorMethod

fun defineConstructorMethod(scope: Scriptable, name: String, length: Int, target: SerializableCallable, attributes: Int = DONTENUM, propertyAttributes: Int = DONTENUM or READONLY)(source)
fun defineConstructorMethod(scope: Scriptable, name: String, length: Int, prototype: Any?, target: SerializableCallable, attributes: Int, propertyAttributes: Int)(source)


fun defineConstructorMethod(scope: Scriptable, key: Symbol, name: String, length: Int, target: SerializableCallable)(source)

Upstream ignores key here and defines the method under name, which this copies.