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

@@ -210,7 +210,7 @@ impl Engine {
let orig_lib_len = global.lib.len();
#[cfg(not(feature = "no_function"))]
if !ast.functions().is_empty() {
if ast.has_functions() {
global.lib.push(ast.functions().clone());
}