defineConstructorMethod

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


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

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