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

Yes, even without Eval, there's a ton of reflective mechanisms in JS that are technically broken by dead code elimination (and other transforms, like minification), but most JS tools make some pretty reasonable assumptions that you don't use these features. For example, minifiers assume you don't rely on specific Function.name property being preserved. Bundlers assume you don't use eval to call dead code, too.


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

Search: