3 ms·
> so I didn't understand this bit: That's because it's wrong. > It was confusing because JavaScript uses mark-and-sweep collection, which can handle circular
by masklinn 16y ago
> so I didn't understand this bit:
That's because it's wrong.
> It was confusing because JavaScript uses mark-and-sweep collection, which can handle circular references just fine.
I don't think that's mandated, you could probably implement a refcounted JS interpreter.
> The problem is that the DOM is reference counted (at least in some browsers, at least back when that article was written). So, you can get memory leaks in cases where JS intersects with the DOM.
And the main culprit was, as is usually the case, Internet Explorer.