Automation of finding memory leaks in JavaScript