2 ms·
That might help but it seems like either an implementation or language spec fix is in order. There doesn't seem to be a reason for a function without free varia
by jhgb 9y ago
That might help but it seems like either an implementation or language spec fix is in order. There doesn't seem to be a reason for a function without free variables to turn into a closure at all, thus preventing the issue.
- paulddraper 9y agoYep. Currently, the ECMAScript specification says nothing about GC. And it seems every major JS engine has decided that this type of memory leak is okay. So it's rather unlikely something will change.