Implementation:SeleniumHQ Selenium Closure Structs Set
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing a Set data structure used by Selenium JavaScript atoms.
Description
goog.structs.Set is a vendored copy of the Google Closure Library module. It implements a set data structure with O(1) add and remove operations, supporting both primitive values and object references. It is backed by goog.structs.Map internally and implements both goog.structs.Collection and ES6 Iterable. The class is deprecated in favor of ES6 Sets. 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/set.js
- Lines: 1-382
Key Exports
goog.provide('goog.structs.Set');
// @deprecated This type is misleading: use ES6 Set instead.
goog.structs.Set = function(opt_values) { ... };
// Implements goog.structs.Collection<T>, Iterable<T>
// Backed by goog.structs.Map