Refine Module::iter_script_fn_info.

This commit is contained in:
Stephen Chung
2020-10-05 21:52:39 +08:00
parent 2f6bb643aa
commit 44f8d9e429
3 changed files with 48 additions and 14 deletions

View File

@@ -663,7 +663,7 @@ impl Engine {
)?;
// If new functions are defined within the eval string, it is an error
if ast.lib().num_fn() != 0 {
if ast.lib().count().0 != 0 {
return Err(ParseErrorType::WrongFnDefinition.into());
}