convertThisObject

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.