Eval, literal eval, safe eval

Michał Wadas michalwadas at gmail.com
Mon Dec 1 01:35:26 PST 2014


Creating secure implementation of eval without creating your own
interpreter (or sophisticated operations on AST) is almost impossible - it
would require to copy whole environment and provide mocks to any possibly
dangerous function.
At least O(n^2) complexity without ES6 Map.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141201/0e6102fc/attachment-0001.html>


More information about the es-discuss mailing list