Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
lib: fix undefined timeout regression#3331
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
lib/timers.js Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of util.isUndefined, should be probably just be msecs === undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure thing, incoming..
indutny commented Oct 12, 2015
LGTM, cc @jasnell |
evanlucas commented Oct 12, 2015
yea, LGTM other than that |
d66d408 to e2c2b44Comparermg commented Oct 12, 2015
Fixed the |
indutny commented Oct 12, 2015
LGTM |
63644dd introduced a regression caused by everyone's favourite JavaScript feature: undefined < 0 === undefined >= 0. Add a case to the existing tests to cover this scenario and then add the check for undefined that makes the test pass. PR-URL: #3331 Reviewed-By: Fedor Indutny <[email protected]> Reviewed By: Evan Lucas <[email protected]>
evanlucas commented Oct 12, 2015
are we doing trailing commas? |
indutny commented Oct 12, 2015
Landed in bde32f8. Forgot to run CI :( Thank you! |
indutny commented Oct 12, 2015
Argh, I have overlooked it. No, we don't |
rmg commented Oct 12, 2015
sorry! should I bother fixing? |
63644dd introduced a regression caused by everyone's favourite JavaScript feature: undefined < 0 === undefined >= 0. Add a case to the existing tests to cover this scenario and then add the check for undefined that makes the test pass.
e2c2b44 to 1e14233Comparermg commented Oct 12, 2015
guess I probably shouldn't have force pushed the fix for the trailing comma.. oh well. |
Trott commented Oct 13, 2015
I'm impressed/terrified that this edge case surfaced so quickly. Thanks for finding/fixing. |
63644dd introduced a regression caused by everyone's favourite JavaScript feature: undefined < 0 === undefined >= 0. Add a case to the existing tests to cover this scenario and then add the check for undefined that makes the test pass. PR-URL: #3331 Reviewed-By: Fedor Indutny <[email protected]> Reviewed By: Evan Lucas <[email protected]>
jasnell commented Oct 13, 2015
Landed in v4.x in c245a19 |
Fishrock123 commented Oct 13, 2015
Oops. |
chrisabrams commented Oct 13, 2015
Thanks for this - really appreciate the quick turn around for those of us relying on this fix and using LTS! |
rmg commented Oct 13, 2015
@Trott I'm really aggressive with rolling new released out to StrongLoop's CI, and we have over 100 modules running through it.. didn't take long before we started getting some really mysterious build failures. |
63644dd introduced a regression caused by everyone's favourite
JavaScript feature:
undefined < 0 === undefined >= 0.Add a case to the existing tests to cover this scenario and then add
the check for undefined that makes the test pass.
@indutny@jasnell this should fix at least one of the v4.2.0 regressions.