-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
test: refactor make-callback-recurse test #9498
Conversation
Move copy/pasted callback into its own function.
}); | ||
throw new Error('UNREACHABLE'); | ||
})); | ||
process.nextTick(common.mustCall(testTimer.bind(null, 3))); |
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.
All 3 of these functions allow passing arguments to the callback, why not take advantage of that instead of binding?
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.
Because it's late and I'm tired and not thinking as clearly as I should be.
Oh, wait, it's 8:41 PM. Can't use that excuse.
Anyway, yes, changed! Thanks.
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.
Move copy/pasted callback into its own function. PR-URL: nodejs#9498 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Landed in 837e822 |
Move copy/pasted callback into its own function. PR-URL: #9498 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Move copy/pasted callback into its own function. PR-URL: nodejs#9498 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Move copy/pasted callback into its own function. PR-URL: #9498 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test timers addons
Description of change
Move copy/pasted callback into its own function.