Open
Description
For some reason, in Javascript when you compare 2 date objects with == (or ===), it compares object references instead of values. (http://stackoverflow.com/questions/8245494/javascript-datetime-compare?lq=1). Obviously, this is not the expected behaviour when the other comparisons (>,<,etc) work fine.
Would it be possible to have the compiler compensate for this and emit something like
date1.getTime() === date2.getTime()