Skip to main content

inherit_legacy_source_context

Function inherit_legacy_source_context 

Source
pub fn inherit_legacy_source_context(context: &RuntimeContext)
Expand description

Seed a newly-created standalone runtime context from the ambient source state that preceded it.

Embedders normally install source state directly on an active context. The standalone VM compatibility boundary creates that context after callers have installed a legacy catalog, so it must transfer the catalog and current source exactly once before entering the context scope.