Minor code and docs refactor.

This commit is contained in:
Stephen Chung
2021-11-28 22:57:28 +08:00
parent dca47d5233
commit 9fa4d60336
13 changed files with 175 additions and 127 deletions

View File

@@ -64,7 +64,7 @@ impl Engine {
let statements = ast.statements();
if !statements.is_empty() {
let lib = &[ast.lib()];
let lib = &[ast.as_ref()];
self.eval_global_statements(scope, mods, &mut state, statements, lib, 0)?;
}
Ok(())