Skip to main content

Module javascript_frontend

Module javascript_frontend 

Source
Expand description

JavaScript source frontend for Rust-owned executions.

The frontend mutates only an already-isolated workspace. JavaScript files are transformed by the Rust instrumenter; the small Node/browser runtime remains a language shim and is copied into the workspace under .supercov.

Structs§

JavascriptFrontendCache
JavascriptManifest
PreparedJavascriptFrontend

Enums§

JavascriptFrontendError

Functions§

authored_path
Where the authored text of the rewritten project file file is kept.
changed_directory
The directory of every such text.
changed_path
Where the text a tool of the command gave the rewritten project file file is kept, beside the instrumented copy and never over it.
javascript_frontend_reuse_paths
load_cached_javascript_frontend
prepare_javascript_frontend
Prepare the complete JavaScript frontend inside an isolated workspace. The source project is read only through the copied workspace inventory.
read_javascript_frontend_cache
rewritten_files
The project files this run rewrote, as the authored list records them.
setup_timing_detail
One line saying where the setup phase went, when SUPERCOV_PHASE_TIMING=1 asked for it.