| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
When an interval callback throws an error, the destroy hook is never called due to a faulty if condition.
|
/cc @mcollina @Fishrock123 @nodejs/timers |
Sorry, something went wrong.
| } | ||
|
|
||
| process.on('uncaughtException', common.mustCall((err) => { | ||
| assert(err.message, 'setInterval Error'); |
There was a problem hiding this comment.
This seems to miss .strictEqual.
Sorry, something went wrong.
| const hooks = initHooks(); | ||
| hooks.enable(); | ||
|
|
||
| // install first timeout |
There was a problem hiding this comment.
Nit: please always use capital letters for the first character of a comment and use punctuation.
Sorry, something went wrong.
There was a problem hiding this comment.
Was left over from another test for async hooks. It's not a very helpful comment to be honest. Removing.
Sorry, something went wrong.
|
Updated. Another CI: https://ci.nodejs.org/job/node-test-pull-request/14248/ |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
When an interval callback throws an error, the destroy hook is never called due to a faulty if condition. PR-URL: #20001 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
When an interval callback throws an error, the destroy hook is never called due to a faulty if condition. PR-URL: #20001 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
| Back | FazBrowse Home | New Git URL |
When an interval callback throws an error, the destroy hook is never called due to a faulty if condition.
This change can be backported unlike the semver-major one in the next PR which would bring us in line with the browsers (and the spec).
CI: https://ci.nodejs.org/job/node-test-pull-request/14244/
Checklist