Skip to main content

vm_outcome

Function vm_outcome 

Source
pub fn vm_outcome(source: &str) -> RunOutcome
Expand description

Run source on the bytecode VM, capturing partial output and the error, if any. Same front-end as tw_outcome.

A ## Main that ENDS by driving a page (its trailing statements are nothing but driving verbs mounting at least one component — main_drives_a_page) runs that trailing script through page_host::drive_main instead of letting the compiler inline it into main: the same guarded, settling driver a ## Test candidate tier uses, so a trapping turn recovers and a typed fetch completes here exactly as it does there. Every other program — anything with no trailing driving statement at all — is untouched; the gate never fires for one.

A run is a fresh process, as on every tier: it starts with nothing stored (crate::semantics::storage::reset).