This feature is obsolete. Although it is still supported by browsers, its usage is discouraged in new projects. Try to avoid using it.
This article covers features introduced in SpiderMonkey 1.8
Callback for creating iterators.
||Pointer to the JS context in which the iterator creation should take place.|
||Pointer to the object to iterate over.|
||If true, the iterator should yield keys only, not [key, value] pairs.|
JSExtendedClass.iteratorObject callback to create an iterator object for a given object. The callback should return an iterator object or
NULL if an error or exception occurred on