node
node copied to clipboard
Clear kResourceStore in timers and intervals
As noted in this article, the timeout/interval objects keep a reference to the store even after they have been cleared.
I think it would be better to clear up that reference inside the clearTimeout()
and clearInterval()
functions. We might also want to consider exposing an API for end-users and explicit lifetime tracking.