Implementation:SeleniumHQ Selenium Closure Structs Map
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing a Hash Map data structure used by Selenium JavaScript atoms.
Description
goog.structs.Map is a vendored copy of the Google Closure Library module. It implements a Hash Map data structure suited for complex key types, backed by a plain JS object with a parallel keys array for efficient iteration. The class is deprecated in favor of ES6 Maps. It tracks a version number for detecting changes during iteration and maintains a size property. 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/structs/map.js
- Lines: 1-565
Key Exports
goog.provide('goog.structs.Map');
// @deprecated This type is misleading: use ES6 Map instead.
goog.structs.Map = function(opt_map, var_args) { ... };
// Properties: map_, keys_, size, version_