Skip to content

Feature Request: == and Dates #223

Open
@michaelaird

Description

@michaelaird

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()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions