Hacker News new | past | comments | ask | show | jobs | submit login

I'm pretty sure it's due to http://es5.github.io/#x10.4.2 section 1A.

Calling eval like that causes it to be an indirect eval call which results in it being executed in the global context.




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

Search: