createObject

open override fun createObject(cx: Context, scope: Scriptable): Scriptable?

Builds the object that construct passes to call as this. Returning null says that call will make the object itself, and construct then fixes up its scope and prototype.