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.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

