Fix exception when passing null as PARAM arg
This commit is contained in:
1 parent
ec44ccfc07
commit
19c5bb03ea
3 files changed
+4
-2
No files matched your search
@@ -131,6 +131,8 @@ export function evaluateCallback(exp: Expression): Expression {
|
||||
if (exp[2] == null) return null;
|
||||
if (!isArray(exp[2])) return toString(exp[2]).toLowerCase();
|
||||
}
|
||||
} else if (exp[0] === "PARAM") {
|
||||
if (exp[1] == null) return null;
|
||||
} else if (exp[0] === "AND") {
|
||||
for (let i = 1; i < exp.length; ++i)
|
||||
if (!Array.isArray(exp[i]) && exp[i] != null && !exp[i]) return false;
|
||||
|
||||
Reference in new issue
Block a user