<!DOCTYPE>NestedFunction has a reference to the window.performance object through the enclosing scope's perf variable. NestedFunction is also referenced by the global variable, myPerfFunction, which is referenced internally by the window object because it is global.
Refresh to see leak in IE 9<br/>
var perf = window.performance;
var timing = window.performance.timing;
var myNestedFunction =
var myPerfFunction = GetNestedFunction();
// Make this comment larger to see a larger leak
Article ID: 2970161 - Last Review: 18 Jun 2014 - Revision: 1