Companion

object Companion

Properties

Link copied to clipboard

Both, which is the default.

Link copied to clipboard
const val CONSTRUCTOR_FUNCTION: Int = 1

The constructor may be called as an ordinary function.

Link copied to clipboard
const val CONSTRUCTOR_NEW: Int

The constructor may be called with new.

Functions

Link copied to clipboard
inline fun <T : Any> convertThisObject(thisObj: Scriptable?): T

Casts this to T, with a TypeError when it does not fit. Lambda implementations need this because JavaScript's this is not guaranteed to be an instance of anything.