toObject

fun toObject(scope: Scriptable, value: Any?): Scriptable(source)


fun toObject(cx: Context, scope: Scriptable, value: Any?): Scriptable(source)

ToObject: wraps a primitive in its object, and refuses null and undefined.