3 ms·
If memory serves, a real world example was Angular doing a toString then injecting dependencies before calling eval on the new code. To be honest, I don’t know
by hajile 6y ago
If memory serves, a real world example was Angular doing a toString then injecting dependencies before calling eval on the new code.
To be honest, I don’t know that there’s ever a good reason to use it in production as it almost always involves performance and security problems.
- davidmurdoch 6y ago> involves performance [...] problems Except when it solves them! https://mrale.ph/blog/2018/02/03/maybe-you-dont-need-rust-to-speed-up-your-js.html#optimizing-sorting---monomorphisation https://mrale.ph/blog/2018/02/03/maybe-you-dont-need-rust-to...
- postalrat 6y agoI once used it for a proof of concept for computer worm type message on a sort of message board. Used to re-generate the source code to be added to new messages.