Allow returning literal Infinity string from math operations

This commit is contained in:
Cohee 2024-09-30 23:52:01 +03:00
parent bed7df0038
commit 3fd846fb5b

View File

@ -709,7 +709,7 @@ function performOperation(value, operation, singleOperand = false, scope = null)
const result = singleOperand ? operation(array[0]) : operation(array);
if (isNaN(result) || !isFinite(result)) {
if (isNaN(result)) {
return 0;
}