execIdCall

abstract fun execIdCall(f: IdFunctionObject, cx: Context, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>): Any?

thisObj is null when called as a constructor, and then the result has to be a Scriptable.