Open paulcuth opened 10 years ago
Alternatively you could create Lua classes for each JavaScript primitive type and use __eq metamethods to handle coercions and comparisons correctly. This does not negate, however, the need to add functionality to handle identity comparisons.
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?