Fixing executing function in expression.

This commit is contained in:
Ad5001 2022-10-17 22:54:02 +02:00
parent 6b535dd8a2
commit 1ba594c4f7
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9

View file

@ -222,7 +222,7 @@ function evaluate(tokens, expr, values) {
nstack.push(f.apply(undefined, args));
} else if(f.execute) {
// Objects & expressions execution
nstack.push(f.execute.apply(undefined, args));
nstack.push(f.execute.apply(f, args));
} else {
throw new Error(f + ' cannot be executed');
}