Expand description
The source-map-cache of a V8 coverage dump: its entries, and the rules
that turn a source of a map into a file path. The health coverage reader
and the runtime-coverage remapper of the CLI both use these rules.
Structs§
- Source
MapCache Entry - One
source-map-cacheentry of a V8 dump.
Functions§
- file_
url_ to_ path - The path of a
file://URL or of an absolute path.Nonefor each other URL and for a relative path. - parse_
source_ map_ cache - Decodes each entry of a
source-map-cacheobject on its own, keyed by script URL. An entry that does not decode is left out, so one bad entry does not remove the other maps. A value that is not an object gives an empty map. - resolve_
original_ source - The file path of one source of a map. A
file://URL and an absolute path resolve without a base directory. A relative path joins the base directory. Awebpack://orvite://source resolves to the first existing file in the base directory or one of its ancestors. Each other URL givesNone. - source_
map_ base_ dir - The directory that relative and virtual sources resolve from: the
directory of the external map when the entry names one, else the
directory of the generated script.
Nonewhen the script is not a local file or the map is remote.