dougwilson / nodejs-depd

Deprecate all the things
MIT License
325 stars 87 forks source link

Replace `eval` with `new Function` #24

Closed adrianheine closed 6 years ago

adrianheine commented 6 years ago

Unlike eval, code supplied to new Function at least does not run in the local scope. That makes rollup a lot happier, although it doesn't make any difference in this case.