This pull request changes how the simplify() function works when dealing with expressions that can be simplified even further.
Example 1:
true and true or true
Before the change, this would have evaluated to something like true and (true or (true)). Yet, since this is an expression that can already be simplified to a single literal, it now evaluates to:
true
Example 2:
(5 > 2) or x > 8
Now, when running simplify(), this will evaluate to true or (x > 8). When running simplify({x: 10}), this will evaluate to true.
This pull request changes how the
simplify()
function works when dealing with expressions that can be simplified even further.Example 1:
Before the change, this would have evaluated to something like
true and (true or (true))
. Yet, since this is an expression that can already be simplified to a single literal, it now evaluates to:Example 2:
Now, when running
simplify()
, this will evaluate totrue or (x > 8)
. When runningsimplify({x: 10})
, this will evaluate totrue
.