4 ms·
I'm confused about the setTimeout example; the code as presented is creating an infinite loop, so it does not surprising that the object used in the loop is not
by fvdessen 9y ago
I'm confused about the setTimeout example; the code as presented is creating an infinite loop, so it does not surprising that the object used in the loop is not garbage collected. But I would expect references inside a timer to be collected once the timer has expired. Do they not ?