Fixed dependency loops causing a stack overflow. Added level variable

This commit is contained in:
Thaum Rystra
2020-05-14 13:32:46 +02:00
parent 97fcb76454
commit 29588a87d0
4 changed files with 39 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ export default function evaluateCalculation(string, memo){
try {
calc = math.parse(string);
} catch (e) {
console.error(e);
return string;
}
// Ensure all symbol nodes are defined and coputed