Allows pass signal arrays to a function

This commit is contained in:
Jordi Baylina
2020-11-26 07:22:59 +01:00
parent 334697dd0c
commit 9f15dd2e29
10 changed files with 133 additions and 22 deletions

View File

@@ -888,7 +888,8 @@ function execOpOp(ctx, ast, op, lr) {
right = {t:"N", v: ctx.F.one};
}
if (!right) return ctx.throwError(ast, "adding a no number");
if (!right) return ctx.throwError(ast, "right operand is not initialized");
if (!resBefore) return ctx.throwError(ast, "left operand is not initialized");
const resAfter = ctx.lc[op](resBefore, right);
left.v[o] = resAfter;