Fixed bug where array accessors were attempting to use the substitution engine prematurely

This commit is contained in:
Stefan Zermatten
2020-08-10 04:14:53 +02:00
parent a51154e434
commit 9c93747845

View File

@@ -79,7 +79,7 @@ function symbolSubtitutor(scope, errors){
return new math.ConstantNode(0);
}
}
} else if (node.isAccessorNode){
} else if (node.isAccessorNode && node.object.isSymbolNode){
try {
let value = node.evaluate(scope);
if (value === undefined) throw 'Not found';