Fix no_function build.

This commit is contained in:
Stephen Chung
2022-11-10 12:16:23 +08:00
parent 3a028f2642
commit 54353c6676
7 changed files with 28 additions and 24 deletions

View File

@@ -116,7 +116,7 @@ impl Engine {
global.source = ast.source_raw().cloned();
#[cfg(not(feature = "no_function"))]
if !ast.functions().is_empty() {
if ast.has_functions() {
global.lib.push(ast.functions().clone());
}
#[cfg(not(feature = "no_module"))]