Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure Structs Map

From Leeroopedia
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

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_

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment