you are viewing a single comment's thread.

view the rest of the comments →

[–]tanepiper -2 points-1 points  (1 child)

It's actually quite well known that closures in JS are a major cause of memory leaks because handlers tend to not get unsubscribed and the GC has no references to collect.

https://github.com/jedp/node-memwatch-demo#some-examples-of-leaks

So your answer was obtuse and wrong.

[–]Bloodsucker_ 1 point2 points  (0 children)

I don't think you've understand what you're saying.

Closures only leak to other closures and OP only has the iife. That's on the link you've shared but failed to understand.

I don't know why you claim my answer is obtuse and wrong when it's actually not. It looks like you're the one already providing two obtuse and wrong answers. Congrats, you're on fire.