News for hackers. Stuff that matters.
Re:A surprising JavaScript memory leak found at Meteor by ulisesrmzroche on Friday June 28, 2013 @03:09PM (#5959804)
In JS, functions can refer to variables defined in outer scopes, and can refer to variables defined in outer functions even after those functions have returned. JS functions are first-class objects.

They also store any variables they may refer to that are defined in their enclosing scopes, including the parameters and variables of outer functions.

There are no comments on this comment yet.