3 ms·
Unfortunately, this behavior is common across all major browsers. There is a Chromium bug for it (http://crbug.com/315190 http://crbug.com/315190), but no respo
by paulddraper 13y ago
Unfortunately, this behavior is common across all major browsers. There is a Chromium bug for it (http://crbug.com/315190 http://crbug.com/315190), but no responses as of yet.
- robmcm 13y agoThis isn't going to be trivial to fix, it would require the vm to provide a different taylored scope to each function.
- paulddraper 13y agoUnfortunately, you are right. I am optimistic, however. IE used to not GC cyclical JS/DOM references. Google Chrome is doing a massive rework of DOM garbage collection with Oilpan. You are right that it is not a trivial change, but there is nothing technically infeasible about GC'ing per closure. I think it is worth it, just as it was worth it for IE to have smarter GC.
- esailija 13y agoThey are not going to "fix it", it is working as intended with the deliberate tradeoff because almost no real world code is affected by it.