Skip to main content

browser_host_js

Function browser_host_js 

Source
pub fn browser_host_js(name: &str) -> String
Expand description

The browser host: the production analog of the test MockDom. It supplies the real DOM behind the dom_* imports, allocates host Text into linear memory, and fires event/fetch callbacks through the exported __logos_call_closure trampoline. Loading the emitted .wasm and calling main() builds the page.