mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-09 20:51:51 +09:00
basic: i screwed up order of else-ifs
This commit is contained in:
@@ -2782,14 +2782,15 @@ bF._executeSyntaxTree = function(lnum, stmtnum, syntaxTree, recDepth) {
|
||||
if (func === undefined) {
|
||||
var someVar = bStatus.vars[funcName];
|
||||
|
||||
if (DBGON) {
|
||||
serial.println(lnum+" _executeSyntaxTree: "+someVar);
|
||||
if (typeof someVar == "object")
|
||||
serial.println(lnum+" _executeSyntaxTree: "+Object.entries(someVar));
|
||||
}
|
||||
|
||||
if (someVar === undefined) {
|
||||
throw lang.syntaxfehler(lnum, funcName + " is undefined");
|
||||
}
|
||||
|
||||
if (DBGON) {
|
||||
serial.println(lnum+" _executeSyntaxTree: "+Object.entries(someVar));
|
||||
}
|
||||
|
||||
else if ("array" == someVar.bvType) {
|
||||
func = bStatus.getArrayIndexFun(lnum, stmtnum, funcName, someVar.bvLiteral);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user