News for hackers. Stuff that matters.
Re:A surprising JavaScript memory leak found at Meteor by DanWaterworth on Friday June 28, 2013 @03:43PM (#5959960)
> You'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.

Re:A surprising JavaScript memory leak found at Meteor by bmm6o on Friday June 28, 2013 @03:55PM (#5960025)
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?