forIterator

Wrap the provided iterator in a JS iterator proxy.