Skip to main content

DOM_SHIM_JS

Constant DOM_SHIM_JS 

Source
pub const DOM_SHIM_JS: &'static str;
Expand description

The minimal DOM the runtime’s own tests run against.

Re-exported from where it lives rather than copied. A second copy with counters in it would drift, and the benchmark would then be measuring a DOM nothing else in the repository runs against. The minimal DOM the runtime and everything downstream of it run against when there is no browser.

Exposed from here because four crates were reaching for it and only one of them owns it. They used to reach across the workspace with ../../zdc-runtime/tests/dom-shim.js, which works in a workspace build and does not survive cargo package: a crate may only embed files inside its own directory. One copy, one owner, and a published zdc-runtime that compiles.