Fix: Error description function not found

This commit is contained in:
Jordi Baylina
2020-08-12 01:36:01 +02:00
parent 90cc7d5072
commit 923b19c414
4 changed files with 4 additions and 7 deletions

View File

@@ -574,7 +574,7 @@ function execFunctionCall(ctx, ast) {
const fnc = ctx.functions[ast.name];
if (!fnc) return ctx.throwError("Function not defined");
if (!fnc) return ctx.throwError(ast, "Function not defined");
const paramValues = [];
for (let i=0; i< ast.params.length; i++) {