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

The extra fun thing about this is that eval has different semantics if it's assigned to a different name, in order to allow JavaScript implementations to apply extra optimizations to code that doesn't call a function literally named "eval": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Andy Wingo (of course!) has a good explanation of this: https://wingolog.org/archives/2012/01/12/javascript-eval-con...





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

Search: