Phase 6: Pre-populate Rhai AST cache from Document at startup
This commit is contained in:
@@ -160,6 +160,7 @@ pub fn run_file(path: &str) -> ! {
|
|||||||
move || {
|
move || {
|
||||||
let mut local_doc = doc.clone();
|
let mut local_doc = doc.clone();
|
||||||
let rhei = RheiContext::new(&local_doc.rhei_scripts);
|
let rhei = RheiContext::new(&local_doc.rhei_scripts);
|
||||||
|
rhei.precompile_all_from_doc(&local_doc);
|
||||||
rhei.initialize(&mut local_doc.variables);
|
rhei.initialize(&mut local_doc.variables);
|
||||||
|
|
||||||
let vdom_roots = Interpreter::evaluate_vdom(
|
let vdom_roots = Interpreter::evaluate_vdom(
|
||||||
|
|||||||
Reference in New Issue
Block a user