Implementation:SeleniumHQ Selenium Closure Testing StackTrace
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing tools for parsing and pretty printing error stack traces, used by Selenium JavaScript atoms.
Description
goog.testing.stacktrace is a vendored copy of the Google Closure Library module. It provides tools for parsing error stack traces across different browsers and formatting them into a common canonical representation. The Frame class represents individual stack frames with context, function name, alias, and file path information. It supports deobfuscation of function names, HTML escaping for display, and normalizing stack trace formats across browser implementations. 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/testing/stacktrace.js
- Lines: 1-564
Key Exports
goog.provide('goog.testing.stacktrace');
goog.provide('goog.testing.stacktrace.Frame');
// Frame class for representing stack frames
goog.testing.stacktrace.Frame = class {
constructor(context, name, alias, path) { ... }
getName() { ... }
isAnonymous() { ... }
toCanonicalString() { ... }
};