From 1ba594c4f7241bbb533c0225c9d6e35fcdc1619a Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 17 Oct 2022 22:54:02 +0200 Subject: [PATCH] Fixing executing function in expression. --- LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js index 23b164f..5056ed2 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js @@ -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'); }