Let say I got this:
for(var i = 0 ; i < 100000 ; i++)
{
// I know, this is not recommended to do it that way...
// Used it because it is the easiest way to create
// different functions to explain the question.
a = [ new Function('return ' + i) ];
}
a = 0;
Are the functions created simply deleted? Or they still exist but can not longer be accessed? Can I have a memory issue with this code? (Not talking about performance)
Note: I'm not actually "overwriting" functions directly: I'm overwriting the object that contains the function.