Implementation:SeleniumHQ Selenium Closure Iter
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing Python-style iteration utilities used by Selenium JavaScript atoms.
Description
goog.iter is a vendored copy of the Google Closure Library module. It provides Python-style iteration utilities including an Iterator class, ES6 iterator protocol support, and helper functions for working with iterable objects. The Iterator class is deprecated in favor of ES6 iterables. Selenium uses this as part of its JavaScript atom infrastructure.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/iter/iter.js
- Lines: 1-1531
Key Exports
goog.provide('goog.iter');
goog.provide('goog.iter.Iterable');
goog.provide('goog.iter.Iterator');
goog.iter.Iterator = function() {};
goog.iter.Iterator.prototype.next = function() { ... };
goog.iter.ES6_ITERATOR_DONE = {done: true, value: undefined};
goog.iter.createEs6IteratorYield = function(value) { ... };