timers: handle unrefed intervals in clearTimeout()
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
timers
Description of change
This commit clears the _repeat
property of all timer objects in clearTimeout()
. This prevents intervals passed to clearTimeout()
from being rearmed.
Fixes: https://github.com/nodejs/node/issues/9561 (although it does not directly address wrap->object()
issue described in https://github.com/nodejs/node/issues/9561#issuecomment-260340127)
R= @bnoordhuis