toIterator

fun toIterator(cx: Context, obj: Scriptable, keyOnly: Boolean): Scriptable?

The legacy __iterator__ protocol. Null when the object does not use it.