Rewriting loops in JS to prevent users crashing their browser tab: https://repl.it/site/blog/infinite-loops
It's a neat use of Babel, but it shows the value of sandboxes that expose this feature.
miniblog.
Related Posts
PyPI packages with malicious install scripts! https://www.nbu.gov.sk/skcsirt-sa-20170909-pypi/ (so few PLs have opt-in install scripts or run them in sandboxes)