Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug with lts computation for node 10 #59

Merged
merged 1 commit into from
Feb 11, 2019

Conversation

nornagon
Copy link
Member

chained comparisons don't work in node, a < b < c is equivalent to (a < b) < c, i.e. coerce the boolean (a < b) to an integer (0 for false, 1 for true) and then compare that to c. So this lts test would always have been true, since both 0 and 1 are less than +new Date(2020, 4, 31)

chained comparisons don't work in node, `a < b < c` is equivalent to `(a < b) < c`, i.e. coerce the boolean `(a < b)` to an integer (0 for false, 1 for true) and then compare that to `c`. So this `lts` test would always have been `true`, since both `0` and `1` are less than `+new Date(2020, 4, 31)`
@MarshallOfSound MarshallOfSound merged commit 9c5acd1 into electron:master Feb 11, 2019
@lgeiger
Copy link
Contributor

lgeiger commented Feb 11, 2019

🎉 This PR is included in version 2.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nornagon nornagon deleted the patch-1 branch February 11, 2019 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants