-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
timers: (clearImmediate) only accept immediate #57069
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57069 +/- ##
==========================================
- Coverage 89.09% 89.08% -0.01%
==========================================
Files 665 665
Lines 193249 193249
Branches 37231 37232 +1
==========================================
- Hits 172175 172159 -16
- Misses 13802 13822 +20
+ Partials 7272 7268 -4
|
2a34ac5
to
69cec8a
Compare
Rebased |
@@ -301,7 +301,7 @@ ObjectDefineProperty(setImmediate, customPromisify, { | |||
* @returns {void} | |||
*/ | |||
function clearImmediate(immediate) { | |||
if (!immediate || immediate._destroyed) | |||
if (!immediate?._onImmediate || immediate._destroyed) |
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.
Unfortunately, even tho we're not adding a throw, I think this is going to need to be semver-major
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.
No strong opinions, but isn't it a bug fix? Bug fixes are "breaking" by nature
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.
I think opinions on this can vary. Unfortunately since it has worked this way for such a long time we have to treat it as a semver-major
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.
Yeah I see, just wanted to double check, thanks for the response!
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.
I am +1 on this being semver-major
Fixes #57063