Function create_runtime_with_loader

Source
pub fn create_runtime_with_loader(
    loader: Option<Rc<dyn ModuleLoader + 'static>>,
) -> JsRuntime
Expand description

Create a new runtime with the pjs extension built-in. Allow to pass a ModuleLoader to use, by default NoopModuleLoader is used.