Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You state what variables are being captured by just using them in the lambda body.

Wow, have you never spent a week debugging a JavaScript memory leak?



No. What I have done on the other hand was add unused lexical variables to an anonymous function so the runtime wouldn't optimise them out of the closure and I could still see them in the debugger.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: