Class NativeIterator

    • Method Detail

      • getStopIterationObject

        public static Object getStopIterationObject​(Scriptable scope)
        Get the value of the "StopIteration" object. Note that this value is stored in the top-level scope using "associateValue" so the value can still be found even if a script overwrites or deletes the global "StopIteration" property.
        scope - a scope whose parent chain reaches a top-level scope
        the StopIteration object