Skip to content

Commit

Permalink
Removes arbitrary limits from eqValues & eqArray
Browse files Browse the repository at this point in the history
  • Loading branch information
twig2let committed Nov 1, 2024
1 parent e2d2a57 commit 6dd3778
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions framework/src/source/CommonUtils.bs
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,6 @@ namespace rooibos.common
' * @returns {boolean} - True if values are equal or False in other case.
' */
function eqValues(Value1, Value2, fuzzy = false, callCount = 0) as dynamic
if callCount > 10
? "REACHED MAX ITERATIONS DOING COMPARISON"
return true
end if

' Workaraund for bug with string boxing, and box everything else
val1Type = rooibos.common.getSafeType(Value1)
val2Type = rooibos.common.getSafeType(Value2)
Expand Down Expand Up @@ -769,10 +764,6 @@ namespace rooibos.common
' * @returns {boolean} - True if arrays are equal or False in other case.
' */
function eqArray(Value1, Value2, fuzzy = false, callCount = 0) as dynamic
if callCount > 30
? "REACHED MAX ITERATIONS DOING COMPARISON"
return true
end if
if not (rooibos.common.isArray(Value1)) or not rooibos.common.isArray(Value2)
return false
end if
Expand Down

0 comments on commit 6dd3778

Please sign in to comment.