JavaScript has two distinct relational operators, == and ===, but colony is currently treating them as the same.
JavaScript:
console.log(0 == false, 0 === false); // --> true, false
Colony output:
--...
console:log((((0))==((false))), (((0))==((false))));
--...
Maybe there should be runtime functions that perform these comparisons rather than using Lua's built-in operators that coerce in slightly different ways or have different behaviours altogether?
console:log(_equal(((0)),((false))), _identical(((0)),((false))));
JavaScript has two distinct relational operators, == and ===, but colony is currently treating them as the same.
JavaScript:
Colony output:
Maybe there should be runtime functions that perform these comparisons rather than using Lua's built-in operators that coerce in slightly different ways or have different behaviours altogether?