Comment on A surprising JavaScript memory leak found at MeteorparentComments−DanWaterworth13yYou're right that a closure only needs to contain the variables that are closed over.You would think so, but this assumption fails in the presence of eval.−bmm6o13ySure, but that's the only exception, right? If there's no eval call in the function that requires the closure it's easily determined what variables don't need to be included, right?
Comments
You would think so, but this assumption fails in the presence of eval.
Sure, but that's the only exception, right? If there's no eval call in the function that requires the closure it's easily determined what variables don't need to be included, right?