You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Esbuild performs Constant Folding on equality checks where both sides are constant and known. So if(5 == 5) get's simplified to if(true), which get's simplified further to omit the branching all together.
Esbuild currently doesn't do this for inequality checks, such as <=, >=, >, <. if(5 >= 5) does not get simplified to if(true). I would expect inequalities to also get folded.
Esbuild performs Constant Folding on equality checks where both sides are constant and known. So
if(5 == 5)
get's simplified toif(true)
, which get's simplified further to omit the branching all together.Esbuild currently doesn't do this for inequality checks, such as
<=
,>=
,>
,<
.if(5 >= 5)
does not get simplified toif(true)
. I would expect inequalities to also get folded.Playground Link
The text was updated successfully, but these errors were encountered: