Fix problems with script-defined functions.

This commit is contained in:
Stephen Chung
2020-03-03 23:31:16 +08:00
parent 01bee6e16e
commit 3af421ae5f
4 changed files with 21 additions and 12 deletions

View File

@@ -144,11 +144,6 @@ impl Engine {
.map_err(|err| EvalAltResult::ErrorParsing(err))
.and_then(|AST(ref os, ref fns)| {
for f in fns {
// FIX - Why are functions limited to 6 parameters?
if f.params.len() > 6 {
return Ok(());
}
self.script_fns.insert(
FnSpec {
ident: f.name.clone(),